Very Slow Compilation in IDEA 13.1 for Java and Scala Projects

I've installed IntelliJ IDEA 13.1.2 on my Windows 7 64 bit laptop, but I am finding that each compilation / make step  is very slow.

I have tried a simple hello world console app in both Scala and Java both of which take around a minute to build. I have tried using both the 32 bit and 64 bit versions of the app along with the corresponsing Java runtimes. I have also tried downgrading to the previous IDEA version (13.0). Nothing seems to have helped. A similar Scala/Java app in Eclipse or Scala with raw SBT compiles an order of magnitude faster on the same machine.

I suspect that I'm missing something fundamental here. Can anybody advise?

8 comments
Comment actions Permalink

Hello Simon,

Could you check it with IDEA 13.1.3 RC: http://confluence.jetbrains.com/display/IDEADEV/IDEA+13.1+EAP.
If the issue still occurs please attach idea.log ("Help - Show Log in Explorer") after reproducing.

0
Comment actions Permalink

Hi thanks, tried that - still very slow to compile a single java class. This is the output from the log file:

2014-05-21 16:38:48,831 [ 340316]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS)
2014-05-21 16:39:01,794 [ 353279]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: /C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 135.908/lib/jps-launcher.jar;C:/Program Files (x86)/Java/jdk1.7.0_55/lib/tools.jar;/C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 135.908/lib/optimizedFileManager.jar;/C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 135.908/lib/ecj-4.3.2.jar
2014-05-21 16:39:28,786 [ 380271]   INFO - lij.compiler.impl.CompilerUtil -  COMPILATION FINISHED (BUILD PROCESS); Errors: 0; warnings: 0 took 39960 ms: 0 min 39sec

0
Comment actions Permalink

Hi on subsequent builds it came down to 20-25 sec, so definitely better than before, but not what I'd call usable.

0
Comment actions Permalink

Simon,

Please check that other processes don't interfere building (e.g. antivirus)
Please attach full "system\log" folder for future investigation: https://intellij-support.jetbrains.com/entries/23358108.

0
Comment actions Permalink

Hi see attached.

I will investigate Antivirus.



Attachment(s):
log.rar.zip
0
Comment actions Permalink

Still struggling with this issue.

We have estabilished that when the bit9 anti-virus agent is disabled, the performance is much better (< 10 sec) so clearly anit-virus is at the root for the issue. I've been trying work through this with our Security team though without sucess so far - e.g. creating a performance rule for the .IdeaIC13 folder didn't help. Any advice as to what else to look at?

0
Comment actions Permalink

Also tried moving .IdeaIC13 folder out of Users directory as suggested here:

https://intellij-support.jetbrains.com/entries/23348963

but still the same issue (51 secs to compile hello world java console app)

0
Comment actions Permalink

Simon,

Please take a look at this article for some tips: http://devnet.jetbrains.com/docs/DOC-192.

0

Please sign in to leave a comment.