如何提高 Netbeans 的性能? [英] How to improve Netbeans performance?

查看:29
本文介绍了如何提高 Netbeans 的性能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种真正的方法可以让 Netbeans 加载和工作得更快?

Is there a real way to get Netbeans to load and work faster?

它太慢了,并且在您编码一段时间后变得更糟.它吃掉了我所有的内存.

It is too slow and gets worse when you have been coding for some time. It eats all my RAM.

我在 Windows 机器上,特别是 Windows Server 2008 Datacenter Edition x64,4Gb 内存、3Ghz Core 2 Duo 处理器等.我使用的是 x64 JDK.我使用 NOD32 Antivirus 因为对我来说它是最好的机器性能.

I am on a Windows machine, specifically Windows Server 2008 Datacenter Edition x64, 4Gb of RAM, 3Ghz Core 2 Duo processor, etc. I am using the x64 JDK. I use the NOD32 Antivirus since for me it is the best in machine performance.

在任务管理器中netbeans.exe只显示不超过20Mb,java.exe超过600Mb.

In Task Manager netbeans.exe only shows no more than 20 Mb, java.exe more than 600Mb.

我的项目是一个J2EE web应用,500多个类,只有项目库不包括(外部).当我说慢时,我的意思是 3、4、5 分钟或更长时间的 Netbeans 被冻结.

My project is a J2EE web application, more than 500 classes, only the project libraries not included (externals). And when I said slow, I mean 3, 4, 5 minutes or more Netbeans is frozen.

我的项目对于 Netbeans 来说是否太大了,如果它必须读取所有文件才能获取文件状态,例如错误警告、svn 状态等?我可以禁用所有这些吗?是否可以将其设置为仅在打开文件时进行扫描?

Is my project just too large for Netbeans, if it has to read all files to get the state of files like error warnings, svn status and more? Can I disable all this? Is it possible to set it to scan only when I open a file?

在打开所有工具的情况下,我的 CPU 使用率通常为 30%,我的意思是 Netbeans、MS SQL 管理器、记事本、XMLSpy、任务管理器、Delphi、VirtualBox.Netbeans 占用的 RAM 比我的虚拟化系统要多.

My CPU use is normally at 30 percent with all my tools opened, I mean Netbeans, MS SQL Manager, Notepad, XMLSpy, Task Manager, Delp VirtualBox. Netbeans eats more RAM than my virtualized systems.

在 Linux 中它和在同一台机器上的 Windows 一样慢(Ubuntu 8.04 x64).

In Linux it is as slow as in Windows in the same machine (Ubuntu 8.04 x64).

Netbeans 团队确实提高了启动速度,但是当它打开时它开始缓存 ALL.

It is true that the Netbeans team improved startup speed but when it opens it begins to cache ALL.

我使用了一些 JVM 参数来设置高内存使用率和其他参数:"C:Program FilesNetBeans Devin etbeans.exe" -J-Xms32m -J-Xmx512m -J-Xverify:none -J-XX:+CMSClassUnloadingEnabled

I have used some JVM parameters to set high memory usage and others: "C:Program FilesNetBeans Devin etbeans.exe" -J-Xms32m -J-Xmx512m -J-Xverify:none -J-XX:+CMSClassUnloadingEnabled

但是还是很慢.

推荐答案

当您的 NetBeansEclipse IDE 似乎使用过多内存时,非常简单的问题解决方案:

Very simple solution to the problem when your NetBeans or Eclipse IDE seems to be using too much memory:

  1. 禁用您不使用的插件.
  2. 关闭您不参与的项目.

我在 Linux Mint 和 Ubuntu 机器上遇到了 Netbeans 7.0 的类似问题.Netbeans 使用了 > 700 MiB 的空间和 50-80% 的 CPU.然后我决定做一些清理.我安装了 30 个插件,但我没有使用其中的大部分.所以,我禁用了我没有使用的插件,我禁用了多达 19 个插件.现在内存使用量低至 400+ MiB,CPU 使用量低至 10,最多 50%.

I was facing similar problem with Netbeans 7.0 on my Linux Mint as well Ubuntu box. Netbeans was using > 700 MiB space and 50-80% CPU. Then I decided do some clean up. I had 30 plugins installed, and I was not using most of them. So, I disabled the plugins I was not using, a whopping 19 plug ins I disabled. now memory uses down to 400+ MiB and CPU uses down to 10 and at max to 50%.

现在我的生活轻松多了.

Now my life is much easier.

这篇关于如何提高 Netbeans 的性能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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