NetBeans的运行速度很慢 [英] NetBeans goes very slow

查看:365
本文介绍了NetBeans的运行速度很慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用NetBeans IDE 6.9.1.我在JSP中使用Spring 3.0.2版和Hibernate Tools 3.2.1.GA创建了一个Web应用程序.尽管我在需要时添加了许多外部类库,例如

I'm using NetBeans IDE 6.9.1. I have a web application in JSP using Spring version 3.0.2 and Hibernate Tools 3.2.1.GA. Slowly and gradually, it has been growing in size yet it's not a very big application though I have added many external class libraries as and when required like HibernateValidator.

性能下降,并且在构建应用程序时需要花费大量时间.多次保存更改后,将使用NetBeans的自动部署功能无限/无限地部署应用程序.它永远不会结束,我必须重新启动IDE,并且该过程从头开始.有时应用程序会自动停止,而我不得不重新启动Tomcat服务器(6.0.26),因为大多数尝试重新启动应用程序的尝试都不会成功.

The performance is degraded and it takes a considerable amount of time in building the application. When changes are saved, many a times, the application is deployed infinitely/endlessly with the auto-deploy feature of NetBeans. It never ends and I have to restart the IDE and the procedure begins all over again from scratch. Sometimes the application is stopped automatically and I have to restart the Tomcat server (6.0.26) because mostly an attempt to restart the application doesn't succeed.

很多次(每半小时左右),应用程序都会终止并出现以下异常.

Many a times (every half an hour or so), the application ends with following exception.

java.lang.OutOfMemoryError:PermGen空间

java.lang.OutOfMemoryError: PermGen Space

我必须重新启动系统!

虽然将JPA与EJB和JSF作为前端(GlassFish Server 3)一起使用,但经常情况并非如此,即使对于具有相同版本的NetBeans IDE的高负载应用程序也是如此.和我完全相同的平台(如果我没记错的话).

While working with JPA along with EJB and JSF as a front-end (GlassFish Server 3), it often wasn't the case even with heavily loaded applications with the same version of the NetBeans IDE and exactly the same platform, if I remember correctly.

是否有一些方法可以改善性能?

Are there some ways to improve the performance?

推荐答案

请尝试覆盖jvm选项以获取更多内存

try overriding the jvm option for more memory if you can

export JAVA_OPTS="-Xms64m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=756m"

此处 http://www.unidata .ucar.edu/projects/THREDDS/tech/tds4.2/reference/JavaOptsSummary.html 您可以找到有关java_opts参数的更多信息

here http://www.unidata.ucar.edu/projects/THREDDS/tech/tds4.2/reference/JavaOptsSummary.html you can find a bit more about java_opts parameters

这篇关于NetBeans的运行速度很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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