Java Settings for Netbeans 6.8 on OSX 10.5.8 to optimize cpu usage

后端 未结 6 1407
萌比男神i
萌比男神i 2021-01-02 19:07

Sorry I have several question relative to the same problem.

I am using Netbeans 6.8 on OSX 10.5.8 with java 1.6.0_17 and after about 5 minutes of work, the cpu usage

6条回答
  •  無奈伤痛
    2021-01-02 19:34

    Thank you for the advices which lead me to play around with netbeans.conf.

    here are my options that significantly improve the performances:

     -J-server
     -J-Xverify:none
     -J-d64
     -J-Xss2m
     -J-Xms256m
     -J-Xmx512m
     -J-XX:PermSize=32m
     -J-XX:MaxPermSize=512m
     -J-Dsun.java2d.noddraw=true
     -J-Dsun.java2d.opengl=true
     -J-Dsun.java2d.d3d=false
     -J-Dawt.nativeDoubleBuffering=true
     -J-XX:+UseAdaptiveSizePolicy
     -J-Djava.net.preferIPv4Stack=true
     -J-XX:+AggressiveOpts
     -J-XX:+AggressiveHeap
    
    its seems that important ones are:
     -J-XX:+AggressiveOpts
     -J-XX:+AggressiveHeap
     -J-d64
    

    Here are some useful links which inspired me:

    • http://java.sun.com/performance/reference/whitepapers/tuning.html#section4.2.5
    • http://performance.netbeans.org/howto/jvmswitches/index.html

    I don't try 6.7 because it is now satisfying. Hope it helps!

提交回复
热议问题