|Skip Navigation Links|
|Exit Print View|
|What's New in the Oracle Solaris Studio 12.3 Release Oracle Solaris Studio 12.3 Information Library|
The default heap size for NetBeans IDE 7.0.1 is determined automatically, with respect to the amount of memory available on the system. The Oracle Solaris Studio 12.3 IDE generally runs well with the default setting when you are developing small projects with up to 500 source and header files.
When you are developing larger projects, you will need to increase the heap size. If you get an OutOfMemory exception when developing a large project, the heap size is a likely cause.
You can set the heap size for the Java Virtual Machine (JVM)* on which the NetBeans IDE runs in the netbeans.conf file.
To change the heap size:
In the /Oracle_Solaris_Studio_installation_directory/lib/netbeans/etc/netbeans.conf file, add the —J-Xmx command line Java startup switch, and then restart the IDE.
netbeans_default_options=”-J-Xms32m -J-Xmx128m —J-XX:PermSize=32m —J-XX:MaxPermSize=96m —J-Xverify:none —J-Dapple.laf.useScreenMenuBar=true”
The recommended heap sizes for NetBeans C/C++ Plugin for medium and large applications are:
For developing medium applications (500–2000 source and header files) on a system with 1 GB or more of RAM: 512 MB
For developing large applications (more than 2000 source and header files) on a system with 2 GB or more of RAM): 1 GB
If you are running the Oracle JVM, you can also add the garbage collector switches -J-XX:+UseConcMarkSweepGC (concurrent collector) and -J-XX:+UseParNewGC (parallel collector) to the netbeans.conf file. These options allow the garbage collector to run in parallel with the main execution engine. They might not be supported by non-Oracle implementations of the JVM.
For more information on NetBeans performance tuning, see Tuning JVM Switches for Performance.
Note: The terms “Java Virtual Machine” and “JVM” mean a Virtual Machine for the Java(TM) platform.