I am using IntelliJ (Community Edition) for several months, and at first I'm pleased about its speed & simplicity. But now, after upgrading to version 10, it's extremely slow. Sometimes I click a file then it takes 5 - 15 seconds to open that file (it freeze for that time).
I don't know if I have done anything which cause that: I have installed 2 plugins(regex, sql), and have 2 versions of IntelliJ on my machine (now the version 9 removed, only version 10 remains).
Is there any tips to improve speed of code editor, in general, or specifically IntelliJ? I have some experience when using IntelliJ:
Should open IntelliJ a while before working, cause it needs time for indexing.
Don't open too many code tabs
Open as less other program as possible. I'm using 2 GB RAM WinXP, and it just seems fairly enough for Java, IntelliJ & Chrome at the same time.
IntelliJ IDEA memory usage Follow IntelliJ itself reports that it is using a little more than 1GB of heap but the OS reports that it is using anywhere from 3.5 to 4.5 GB.
From the main menu, select Help | Change Memory Settings. Set the necessary amount of memory that you want to allocate and click Save and Restart.
The more plugins installed in the IDE make it more heavy for your computer. However, Eclipse handles the large projects faster as compared to IntelliJ Idea because it indexes the entire project on start-up. But, when you are working on an existing project, IntelliJ Idea works faster and smoother as compared to Eclipse.
Try to increase using memory size at %IDEA_HOME%\bin\idea.exe.vmoptions
-Xms128m
-Xmx512m
-XX:MaxPermSize=250m
Xms128m
means that at startup there will be allocated 128 mb for heap.Xmx512m
means that maximum heap size available for IDEA is 512 mb-XX:MaxPermSize=250m
PermGen related to java heap.Also you can set maximum garbage collector pause
-XX:MaxGCPauseMillis=10
That means that java's GC will take max 10ms to do his work.
And use concurrent Mark-Sweep (CMS) Collector (But i'm not sure that this will help for latest version of IDEA)
-XX:+UseConcMarkSweepGC
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With