OSX 10.5.8上的Netbeans 6.8的Java设置,以优化CPU使用率 [英] Java Settings for Netbeans 6.8 on OSX 10.5.8 to optimize cpu usage

查看:88
本文介绍了OSX 10.5.8上的Netbeans 6.8的Java设置,以优化CPU使用率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

抱歉,我对同一个问题有几个问题。

Sorry I have several question relative to the same problem.

我在OSX 10.5.8上使用Netbeans 6.8和java 1.6.0_17以及大约5分钟之后工作,netbeans进程(和java)的cpu使用率约为100%。

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 of netbeans process (and java) are around 100%.

这通常是由于:
- 转到声明命令
- 完成命令
- 或多或少地执行2或3个基本操作,例如输入文本

It is often due to: - "go to declaration" command - completion command - more or less doing 2 or 3 basic actions such as entering text

我已经执行以下操作来提高性能,但没有成功:
- 特定PHP netbeans
- 删除所有不必要的插件和模块

I already do the following to enhance performance, without success: - specific PHP netbeans - remove all unnecessary plugin and modules

所以我的问题是如何解决这个问题并增强java和netbeans性能在OSX上?

So my question is how to solve this problem and enhance java and netbeans performance on OSX?

更准确地说:
- 垃圾收集政策的改变是否会提高性能?怎么做?
- 默认java外观会改变性能吗?哪个L& F最轻?
- 我怎样才能更准确地回溯这个问题呢?

More precisely: - will a change in garbage collection policy enhance performance? And how to do this? - will a change in default java look and feel enhance performance? Which L&F is the lightest? - how can I "backtrace" this problem more precisely?

对于同一篇文章中的所有这些问题感到抱歉,但我对这个问题已经不在用了...提前感谢您的建议,提示和帮助!

Sorry for all this questions in the same post but I am running out of idea concerning this problem... Thank you in advance for your advices, hints and help!

推荐答案

您可以尝试增加netbeans的可用堆。
设置在$ NETBEANS_HOME / etc / netbeans.conf中

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

相关的设置是 netbeans_default_options
默认为:-J-Xms32m我将以 -Xms256m -Xmx512m 开头,带-J(前缀)

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

编辑:来自netbeans.conf

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

这篇关于OSX 10.5.8上的Netbeans 6.8的Java设置,以优化CPU使用率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆