Speeding up Netbeans for use on a Drupal site.

OK – So I have a laptop with 6GB RAM.  And I’ve just installed Netbeans – and I want to debug a Drupal.

(BTW – I installed Netbeans from the main Netbeans site and not from the Ubuntu repository due to concerns RE the current repository version).

Netbeans seems to be slow.

This is what I set the in the file:


netbeans_default_options=”-J-client -J-Xss2m -J-Xms128m -J-Xmx512m -J-XX:PermSize=128m -J-XX:MaxPermSize=512m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true”


Xms – initial heap memory.

Xmx – Maximum heap memory.

Once these have been set we also need to set the values for the Perm memory which is separate:

PermSize – Initial memory for Perm.

MaxPermSize – Maximum allowed for Perm memory.


In both cases the Maximums had to be raised as the default values are too low.


Share Post :