一挂就报内存溢出 下面是TOMCAT日志 
JAVA程序是没有报错,

Nov 24, 2009 4:07:02 PM org.apache.catalina.core.ApplicationDispatcher invoke 
SEVERE: Servlet.service() for servlet jsp threw exception 
java.lang.OutOfMemoryError: PermGen space 
Nov 24, 2009 4:07:02 PM org.apache.catalina.core.StandardWrapperValve invoke 
SEVERE: Servlet.service() for servlet action threw exception 
java.lang.OutOfMemoryError: PermGen space 
Exception in thread "http-8180-36" java.lang.OutOfMemoryError: PermGen space 
Exception in thread "http-8180-35" java.lang.OutOfMemoryError: PermGen space 
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" 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-#2" java.lang.OutOfMemoryError:

PermGen space 
Login Success! 
Exception in thread "http-8180-23" java.lang.OutOfMemoryError: PermGen space 
ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'action' on 'class

com.szyt.ajax.SuggestedMessage: Error setting expression 'action' with value '[Ljava.lang.String;@14653f5 
ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'verificationStatus' on 'class

com.szyt.ajax.SuggestedMessage: Error setting expression 'verificationStatus' with value '[Lj 
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 "http-8180-14" java.lang.OutOfMemoryError: PermGen space 
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" java.lang.OutOfMemoryError:

PermGen space 
Exception in thread "Thread-12" java.lang.OutOfMemoryError: PermGen space 
Exception in thread "http-8180-37" java.lang.OutOfMemoryError: PermGen space 
Exception in thread "http-8180-25" java.lang.OutOfMemoryError: PermGen space 
Exception in thread "Timer-0" java.lang.OutOfMemoryError: PermGen space 
Exception in thread "Thread-10" java.lang.OutOfMemoryError: PermGen space 
Exception in thread "http-8180-39" java.lang.OutOfMemoryError: PermGen space

解决方案:

非堆空间不足,其实设置已经很大了-XX:PermSize256M -XX:MaxPermSize:512M

应该是 PermGen space 在tomcat 默认是 64m 通常足够用了,溢出原因看 http://wiki.apache.org/tomcat/FAQ/Deployment,其中关键的是

引用:
Because the Classloader (and the Class objects it loaded) cannot be recycled.

其它参考 http://wiki.apache.org/tomcat/OutOfMemory

考虑使用 -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled
_________________

具体联系我:

最新文章

  1. $ORACLE_HOME变量值末尾多“/”惹的祸
  2. 【三石jQuery视频教程】01.图片循环展示_再次重发
  3. 使用Chrome工具来分析页面的绘制状态
  4. Pointer arithmetic for void pointer in C
  5. ArcGIS上根据经纬度求地球表面两点间距离的实现
  6. Mahout之Canopy Clustering深入理解
  7. Less 导入命令 @import
  8. 你应该知道的8个Java牛人
  9. Linux学习之域名解析命令
  10. pthread_create多线程执行顺序诡异现象
  11. WF4.0以上使用代码完整自定义动态生成执行工作流Xaml文件
  12. Android自动化测试之MonkeyRunner使用
  13. SpringMVC注解,访问404,没有进入到controller
  14. RocketMQ事务消息-demo
  15. Qt绘制字体并获取文本宽度
  16. expect 批量执行命令
  17. 利用VBS下载EXE文件手法记录
  18. 在winsshd 中添加id_rsa.pub 实现Windows 服务器主机自动信任Linux 客户端
  19. div+css模拟select下拉框
  20. Oracle sql语句中(+)作用

热门文章

  1. PHP strrchr() 函数
  2. luogu P6088 [JSOI2015]字符串树 可持久化trie 线段树合并 树链剖分 trie树
  3. Spring 注解学习 详细代码示例
  4. mysql主主半同步
  5. python7.1处理异常
  6. Python笔试——毕业旅行问题
  7. 理解HTTP的POST和PUT的区别
  8. JS 节点笔记
  9. 【av68676164(p33-p34)】进程通信
  10. Linux探测工具BCC(网络)