To change the JVM parameters for NetBeans so that it runs better (in case you have hardware), go to Netbeans installation directory and find the netbeans.conf file inside the /etc dir:
C:\NetBeans-7.0.1\etc\netbeans.conf
Open the file netbeans.conf and find netbeans_default line:
netbeans_default_options="-J-server -J-Xss4m -J-Xms256m -J-XX:PermSize=64m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Duser.language=en -J-Duser.region=US"
I changed mine to include some additional JVM parameters. Also, note that I changed the mode from -client to -server (it runs better in my notebook's hardware I guess :-).
So the new JVM parameters are:
-J-server -J-Xms128m -J-Xmx512m -J-XX:+UseConcMarkSweepGC -J-XX:+UseParNewGC -J-XX:ParallelGCThreads=4 -J-XX:+CMSParallelRemarkEnabled -J-XX:NewSize=64m -J-XX:MaxNewSize=64m -J-XX:+DisableExplicitGC -J-XX:PermSize=64m -J-XX:MaxPermSize=256m
The complete line:
netbeans_default_options="-J-server -J-Xms128m -J-Xmx512m -J-XX:+UseConcMarkSweepGC -J-XX:+UseParNewGC -J-XX:ParallelGCThreads=4 -J-XX:+CMSParallelRemarkEnabled -J-XX:NewSize=64m -J-XX:MaxNewSize=64m -J-XX:+DisableExplicitGC -J-XX:PermSize=64m -J-XX:MaxPermSize=256m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Duser.language=en -J-Duser.region=US"
Enjoy the better performance! :-D
No comments:
Post a Comment