netbeans.conf - How to make NetBeans faster
I've started to experimenting with NetBeans again, but for that I need to make NetBeans faster...
Consider adding to your /etc/netbeans.conf minimal and maximal Heap sizes (larger than default).
-J-Xms256m start level
-J-Xmx1024m maximum
Adjust it to your RAM, and current memory usage.
on Windows 7:
netbeans_default_options="-J-client -J-Xss2m -J-Xms128m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true -J-Xverify:none -J-Xmx512m -J-XX:CompileThreshold=100 -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled "
Ideas from: http://performance.netbeans.org/howto/jvmswitches/
Beware that on LinuxMint I used only
-J-Xms512 -J-Xmx2048m
without GC and CompileTreshold due to slowdown of IDE and whole system (100% CPU without reason).
The best idea is to experiment and try on your machine.
Furthermore consider disabling as much Plugins as You can. If you are not using svn/hudson/bugzilla just remove it (or at least disable). Disabling Spellcheckers should also gain speed.
Want to learn more?
Sign up to get a digest of my articles and interesting links via email every month.