java.lang.OutOfMemoryError: PermGen space tomcat6.16+apache2.26+php2.5

lin_zy 2008-05-04 12:24:26
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
请问这个错误怎么解决!!!
...全文
1813 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
dlh1224 2012-02-23
  • 打赏
  • 举报
回复
求答案、、、、
gxw19820801 2011-08-26
  • 打赏
  • 举报
回复
恢复看俺
worldcss 2010-07-08
  • 打赏
  • 举报
回复
看看,希望能解决,都困扰我好几天了
tokyo2006 2010-02-25
  • 打赏
  • 举报
回复
为了要看正确答案,没办法啦,真是的
老紫竹 2008-05-04
  • 打赏
  • 举报
回复
更详细的,请参考这个文章 http://www.java2000.net/viewthread.jsp?tid=4117
老紫竹 2008-05-04
  • 打赏
  • 举报
回复
原因有2
1 你的程序设置的内存太少了,请参考1楼的做法,增加内存数, 你可以一看这个图文的教程 http://www.java2000.net/viewthread.jsp?tid=187

2 你经常更新你的class文件,同时你的配置reloadable="true" 造成每次更新都造成代码区重新读取。以前的又不会自动释放
在几次之后,终于没有空间了。 有人建议用 jrocket 。 我没有测试过。我一般更新几次之后,都会重新启动一次服务器!

其实在正式环境中,不应该随意更新class文件的!
lin_zy 2008-05-04
  • 打赏
  • 举报
回复
会不会和程序有bug有关呢!
我的tomcat运行了几天就出现这样的问题了!
临远 2008-05-04
  • 打赏
  • 举报
回复
permGen是sun的 jdk专有的一个问题,要给jvm设置permGen内存大小才能解决。
-Xms128M -Xmx256M -XX:MaxNewSize=256m -XX:MaxPermSize=256m

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧