java.lang.OutOfMemoryError: PermGen space tomcat6.16+apache2.26+php2.5
Download Error!
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1"
java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" java.lang.
OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor6" java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
Exception in thread "Timer-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Prototyper" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor7" java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor3" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Timer-0" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Timer-2" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor9" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor15" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor23" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor24" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor17" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor474" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor484" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor4" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-2" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-8" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-9" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-13" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-14" java.lang.OutOfMemoryError: PermGen space
java.lang.reflect.InvocationTargetException at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.OutOfMemoryError: PermGen space
请问这个错误怎么解决!!!
------解决方案--------------------
原因有2
1 你的程序设置的内存太少了,请参考1楼的做法,增加内存数, 你可以一看这个图文的教程 http://www.java2000.net/viewthread.jsp?tid=187
2 你经常更新你的class文件,同时你的配置reloadable="true" 造成每次更新都造成代码区重新读取。以前的又不会自动释放
在几次之后,终于没有空间了。 有人建议用 jrocket 。 我没有测试过。我一般更新几次之后,都会重新启动一次服务器!