2015-02-24

How to make IntelliJ IDEA load faster

IntelliJ IDEA is one of the best IDE around, but the default configuration isn't that good. The initial loading of this software took about 5-15 minutes because of the initial configuration of JVM. There are some workaround to make it work faster, just go to your IDEA installation directory, bin directory, and look for idea.vmoptions (or idea64.vmoptions), change the content of that file into something like this:

-server
-Xms512m
-Xmx8192m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=512m
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-Dawt.useSystemAAFontSettings=lcd

The Xmx sets the maximum memory that could be used by JVM, if you have a huge amount of RAM (4 GB+) you may change it at least half and at most three quarter of your RAM. After changing that configuration, close the IDEA and start it again IDEA now should load faster (in my PC it took about 10 seconds to start loading the project and 20 seconds more to complete loading the project).