samedi 15 juin 2013

NetBeans : configure the IDE for extra productivity


Java IDEs are memory eaters.

If your NetBeans is working fine when using default configuration it may work better if you tune JVM memory a little bit.

Indeed, if NetBeans lacks of Java Heap, it can trigger many garbage collections and slow down the whole IDE.

I use a special configuration to enhance NetBeans.

You have to edit the netbeans.conf file which lies in NETBEANS_HOME/etc/ folder.

Add extra heap like this :

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m  -J-Xmx1024m -J-XX:PermSize=32m -J-XX:MaxPermSize=192m  ..."


On Mac, for DMG install only, you have to access the NetBeans package content in order to edit the file : It's in /Applications/NetBeans/NetBeans 7.3.1.app/Contents/Resources/NetBeans/etc/ for instance.


Have fun, with this wonderful IDE !






Contrat Creative Commons
the jee architect cookbook by Olivier SCHMITT est mis à disposition selon les termes de la licence Creative Commons Paternité - Pas d'Utilisation Commerciale - Pas de Modification 3.0 Unported.

1 commentaire: