If you are a programmer or a student who learns programming language especially Java programming language, you might know what Netbeans is. It is an IDE (Integrated Development Environment) for many programming languages. My favorite feature of Netbeans is its GUI Designer which let me design the user interface of my application easily. Unfortunately, Netbeans take long time to start. It takes 6.52 seconds to completely loaded. Well, I will give you a trick to reduce this loading time by up to 1.5 seconds. Let's get started!


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:
  • 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"
Replace the above line with this one:
  • 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"
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.
For more options you can use to optimize Netbeans performance, please click here.

Regards :)


,
author

About the Author

Damar Riyadi is a chief and owner of tahutek.net , Damar Riyadi joining the UB! since september 2011, he commit to bring a quality ubuntu review and article for you. Interested with him, find him in Google + , Facebook , and Launchpad.