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

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

问题描述

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

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

当你编码一段时间时,它太慢而且会变得更糟。它占用了我所有的RAM。

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的RAM,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只显示不超过20 Mb,java.exe超过600Mb。

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

我的项目是一个J2EE Web应用程序,超过500个类,只包含项目库(externals)。当我说慢,我的意思是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中,它在同一台机器(Ubuntu 8.04 x64)中与Windows一样慢。

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 Files \ NetBeans Dev \bin\\\
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 Files\NetBeans Dev\bin\netbeans.exe" -J-Xms32m -J-Xmx512m -J-Xverify:none -J-XX:+CMSClassUnloadingEnabled

但它仍然很慢。

推荐答案

NetBeans 时非常简单的问题解决方案 Eclipse IDE似乎使用了太多内存:

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


  1. 禁用不使用的插件。

  2. 关闭您尚未处理的项目。

  1. Disable the plugins you are not using.
  2. close the projects you are not working on.

我的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天全站免登陆