tomcate 报 PermGen space 错误

早上起来,同事说tomcat挂了。
打开日志一看,全是:
引用
java.lang.NullPointerException
Exception in thread "http-8080-4" java.lang.NullPointerException
Exception in thread "http-8080-14" java.lang.NullPointerException
Exception in thread "http-8080-8" java.lang.NullPointerException
java.lang.NullPointerException
Exception in thread "http-8080-18" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-15" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-17" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-2" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-19" java.lang.OutOfMemoryError: PermGen space

说老实话,第一次遇到这个,网上搜了一下,很多说是jvm的bug(到底是与否,我是不清楚),但是在老外的论坛里找到了解决办法:对jvm的参数进行设置.
我贴一下url大家自己看(英文哦):
1. http://www.mkyong.com/tomcat/tomcat-javalangoutofmemoryerror-permgen-space/
2. http://www.jroller.com/agileanswers/entry/preventing_java_s_java_lang
以前记得看过jvm调优的贴子,这应该属于调优吧,如果是jvm bug再如何调优也只是治标。


猜你喜欢

转载自bbjava.iteye.com/blog/1546298
今日推荐