NetBeans 6.9 和 javaw.exe 使用 > 50% 的 CPU

发布于 2024-09-10 07:32:10 字数 584 浏览 7 评论 0原文

当我使用 NetBeans 6.9 for PHP 时,javaw.exe 占用超过 50% 的 CPU 和大约 450mb 内存(内存并不是真正的问题),但 CPU 往往会过热。

我有 64 位系统的 jdk6.5,现在更新到最新的 jdk6.21 但它是一样的,CPU 总是接近 100%

有没有办法解决 javaw.exe 的这种高要求?

操作系统:Win7 64 位


更新:

我安装了 NetBeans 6.7.1,与 6.9 相比,它运行得非常好。

所以: 6.7.1 javaw.exe 的内存使用量比 6.9 少,但 cpu 仍在使用中 > 50% 不间断

然后: 我安装了 JDK6_21 32 位,因为我有 64 位,并在配置(netbeans.conf)文件中设置 32 位 JDK 的路径。

6.9内存少CPU依然要高 6.7.1 内存较少,空闲时没有 CPU 使用率,

所以我要降级到 6.7.1,因为它对我有用,而且我并不真正需要 6.9,因为我并不真正使用它提供的新功能。

顺便提一句。 6.8 无缘无故地崩溃了,所以这个选项已经被淘汰了。

When i work with NetBeans 6.9 for PHP the javaw.exe is occupying more then 50% of CPU and about 450mb ram (ram is not really the problem) but CPU tend to overheat.

I had jdk6.5 for 64bit sys and now updated to latest jdk6.21 but it is the same, the CPU is always near 100%

is there a solution to this high requirements of javaw.exe?

OS: Win7 64bit


UPDATE:

I installed the NetBeans 6.7.1 the one that worked EXCELLENT to compare with 6.9.

so:
6.7.1 less memory usage by javaw.exe then 6.9 but cpu still in use > 50% nonstop

then:
I installed the JDK6_21 32bit cause i had 64bit and in the config (netbeans.conf) file set the path of the 32bit JDK.

6.9 less memory CPU still to high
6.7.1 less memory NO CPU usage when idle

SO im gonna downgrade to the 6.7.1 because it works for me and i dont really need the 6.9 cause i dont really use the new features that offers.

btw. 6.8 was crashing with no reason, so that option is out.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

爱她像谁 2024-09-17 07:32:10

您可以将 Netbeans 配置为运行 java.exe 而不是 javaw.exe,并查看行为是否仍然相同。

如果相同,则这显然是 Netbeans 问题,因此我建议将此问题报告给 Netbeans,因为这是通常修复错误的方式:)。

You could configure Netbeans to run java.exe instead of javaw.exe, and see if the behavior is still the same.

If it's the same, this is clearly a Netbeans problem, so I would suggest reporting this problem to Netbeans, since this is the way bugs get usually fixed :).

短叹 2024-09-17 07:32:10

您应该考虑在 Netbeans(以及 Eclipse...和 ​​$insertOtherIDE)上做的一件事是关闭自动项目索引、保存时编译以及其他导致大量工作在后台发生而无需您提示的事情。

在 Netbeans 6.9 中,处理相当规模的项目时,外部扫描/索引往往是最大的罪魁祸首。尝试通过以下方式禁用它(这些说明适用于 Mac,我假设它们在 Windows 上类似)

  1. 转到“首选项”
  2. 单击“其他”
  3. 单击“文件”选项卡
  4. 取消选择“启用源自动扫描”

此后,您可以强制 NB 重新扫描通过单击菜单中的源 -> 扫描外部更改进行扫描(可能又是 Mac 特定的)。

看看这是否对你有帮助......

One thing you should consider doing on Netbeans (and Eclipse... and $insertOtherIDE) is to turn off automatic project indexing, compile on save, and other things that cause lots of work to happen in the background without your prompting.

In Netbeans 6.9, external scanning/indexing tends to be the biggest culprit when dealing with projects of considerable size. Try disabling it by (and these instructions are for the Mac, I assume they are similar on Windows)

  1. Go to Preferences
  2. Click on Miscellaneous
  3. Click on the Files Tab
  4. Deselect "Enable auto-scanning of sources"

After this you can force NB to re-scan by clicking Source->Scan For External Changes in the menu (might be Mac specific, again).

See if that helps you out at all...

待"谢繁草 2024-09-17 07:32:10

我有同样的问题(Win7 64位)。一切正常,但突然(我认为重构了一些东西之后)javaw.exe 不断使用CPU。

清除 Netbeans 缓存后,一切都恢复正常(删除缓存文件夹的内容并重新启动 Netbeans)。

%UserProfile%\.netbeans\6.9\var\cache\

在 Netbeans 中遇到奇怪的错误后,我必须这样做,并且大多数时候它解决了问题。我认为有时它会变得不同步。

I had the same problem (Win7 64bit). Everything was working, but suddenly (I think after refactoring some stuff) javaw.exe was constantly using the cpu.

After clearing the netbeans cache, everything was working again (delete the contents of the cache folder and restart Netbeans).

%UserProfile%\.netbeans\6.9\var\cache\

I had to do this before after getting strange errors in Netbeans and most of the time it solved the problems. I think sometimes it just gets out of sync.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文