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

后端 未结 6 1375
萌比男神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:16

    You could try to increase available heap for netbeans. The settings are in $NETBEANS_HOME/etc/netbeans.conf

    The interessting one is netbeans_default_options Default is: -J-Xms32m I would start with -Xms256m -Xmx512m with -J (prefix)

    EDIT: From netbeans.conf

    If you specify the heap size (-Xmx) explicitely, you may also want to enable
    # Concurrent Mark & Sweep garbage collector. In such case add the following
    # options to the netbeans_default_options:
    # -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
    

提交回复
热议问题