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).


2 comments :

  1. Hey,
    Any chance you can update the post to remove the enableSNIExtension flag? it's somewhat misleading since it has no relation to performance and can cause issues with virtual servers (i just wasted two days since i copied these settings two years ago and forgot about them)

    ReplyDelete

THINK: is it True? is it Helpful? is it Inspiring? is it Necessary? is it Kind?