I use intelliJ to develop Scala and last week I got 8 GB of new RAM, so I thought: it's time to use it. I checked my task manager and found intelliJ using ~ 250 MB. From the eclipse, I knew that setting the JVM parameters helped a lot to improve speed, so I googled ...
and found this one for OS X, I could not immediately find the JVM option, so I started to configure Xmx. At 1 GB, I realized that it no longer starts. I checked the IntelliJ Java version, found it outdated and 32-bit.
Thus, in order to use your current JDK and 64-bit, you must change the link to from:
IntelliJ IDEA Community Edition 10.0.2\bin\idea.exe
at
IntelliJ IDEA Community Edition 10.0.2\bin\idea.BAT
and set up start in
The bat searches for JDK_HOME and uses the 64-bit JDK_HOME .
My current virtual machine settings that are in
...\IntelliJ IDEA Community Edition 10.0.2\bin\idea.exe.vmoptions
are
-Xms512m -Xmx1024m -XX:MaxPermSize=512m -ea -server -XX:+DoEscapeAnalysis -XX:+UseCompressedOops -XX:+UnlockExperimentalVMOptions -XX:+UseParallelGC
Instead of -XX:+UseParallelGC you can use -XX:+UseConcMarkSweepGC , which
An acceptable choice for desktop applications, but I recently switched to a bandwidth collector. because with a fast machine and a pretty small bunch you have fast pauses, high throughput and no fragmentation problems (ijuma. #scala)
Changes:
-XX:+UseConcMarkSweepGC
I will stick with these options now. I would really like to know your experience with him.
Which options work best for you? How to hide this cmd window when running intelliJ via .bat ? :)
By the way, here is another link for tuning intelliJ . Basically, on page 20/21 it is said to disable windows recovery and antivirus for system directories.
Another way to speed up intelliJ is to put the intellij system folder in ramdrive (thanks OlegYch | h).
from idea.properties idea.system.path=${idea.home}/.IntelliJIdea/system
See Superuser for Win 7 64-bit RAM Drive or this . 1 GB seems to be good for me.
Another tip my friend gave me is to exclude project directories from your antivirus (access check)
There are similar posts regarding tuning Eclipse:
- Eclipse Helios 3.6
- Eclipse of Juno 4.2
- Specify the JVM to run Eclipse with