本文介绍了如何避免java.lang.OutOfMemoryError:Netbeans中的PermGen空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Netbeans6.8中的Web应用程序上进行开发,并使用Jboss服务器来部署我的应用程序.我能够正常运行该项目,但一段时间后出现tgis错误

I am developing on Web Application in Netbeans6.8 and Using Jboss server to Deploy my application. I am able to run the project properly but after some time i get tgis error

java.lang.OutOfMemoryError: PermGen space :

之后,我必须重新启动JBoss服务器.一段时间我需要重新启动Netbeans IDE谁能告诉我这个错误的原因以及如何避免这种情况

after that i have to restart my JBoss server. Some time i need to restart my Netbeans IDECan any one tell me the reason of this error and How to avoid this

谢谢罗汉

推荐答案

添加此

-XX:+UseConcMarkSweepGC
-XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled
-XX:MaxPermSize=128m

这篇关于如何避免java.lang.OutOfMemoryError:Netbeans中的PermGen空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 12:11