Adam Bien's Weblog
Netbeans 5.5/6.0 performance boost
Working with some bigger Java EE 5 (glassfish) projects, netbeans 5.5 became really slow. Especially the response times
were not satisfactory. So I tried to improve the performance with some "old plain java methods" - I increased the heap space and it really helped.
To change the initial and max heap, netbeans configuration in [netbeans_home]/etc/netbeans.conf has to be changed.
I changed the -Xmx, as well as the -Xms setting - the default setting were amazingly low (32m and 128m).
netbeans_default_options="-J-Xms256m -J-Xmx512m ..."
I also changed the netbeans_jdkhome to Java SE6 from SE5.
netbeans_jdkhome="C:\Programme\Java\jdk1.6.0"
After these changes netbeans became really fast, the speedup is remarkable.
Another optimization can be done directly in netbeans. The parsing delay can be reduced, so netbeans will parse you changes immediately.
Menu->Tools->Options[advanced options]->Editing->Java Sources.Automatic Parsing Delay=50
I changed it to 50ms, and it works on my notebook (old centrino CPU with 2.13 GHz, 2GB RAM) very well.
The value of the setting "Delay of Completion Window Auto Popup" (Editing->Editor Settings->Java Editor) can be also lowered.
One problem remains - opening of the fileexplorer is very slow. It is not a special netbeans, but a more general problem on my machine.
I suppose, that the performance of the file explorer is directly dependent on the amount of network folders. Some of them are usually not online...
Posted at 07:50AM Jan 22, 2007 by Adam Bien in Java / JEE / Architecture | Comments[2] | Views/Hits: 2187
NEW Workshop: "JPA, NoSQL, Caching, Grids and Distributed Caches with Java EE 7", May 7th, 2013, Airport Munich
A book about rethinking Java EE Patterns
Tweet Follow @AdamBien

If your CPU really has 2.13 MHz clock speed, that's really impressive :-)
Posted by Stefan Tilkov on January 22, 2007 at 08:35 AM CET #
Posted by 122.3.108.149 on February 10, 2011 at 06:42 AM CET #