Please find a file named "netbeans.conf". If you installed Netbeans via Package Manager, it's located in /etc/netbeans.conf. Otherwise, if you installed it by downloading the installer from Netbeans website it's located in installation_folder/etc/netbeans.conf.
Now, edit the file and find a line started with "netbeans_default_options". Here's the example:
Replace the above line with this one:
- netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true"
We turned off Java bytecode verification, making classloading faster, and eliminating the need for classes to be loaded during startup with -J-Xverify:none option. The "-Dsun.java2d.opengl=true" option is added for better graphic performance. It enables a new OpenGL-based pipeline for Java 2D used to support hardware-accelerated rendering using OpenGL.
- netbeans_default_options="-J-client -J-Xverify:none -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -Dsun.java2d.opengl=true -Dsun.java2d.d3d=false"
For more options you can use to optimize Netbeans performance, please click here.
Regards :)
0 comments:
Post a Comment