开发者社区> 问答> 正文

tomcat PermGen space 内存溢出问题

最近公司新上一台R720,内存128G的,替换了原来8G内存的服务器,服务器上配置了多个tomcat,更换后出现如下报错:
`Exception in thread "TP-Processor122" Exception in thread "TP-Processor130" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor129" java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor133" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor135" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor140" Exception in thread "TP-Processor137" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor134" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor139" Exception in thread "TP-Processor138" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor136" java.lang.OutOfMemoryError: PermGen space`
然后按照惯例调整大了最大内存等相关参数
VA_OPTS="-Xms2048m -Xmx2048m -Xss1024K -XX:PermSize=2048m -XX:MaxPermSize=4096m"
效果不是很明显,因为系统是64位的,如果再出现,想继续加大设置的数值,但是之前整个服务器就8G内存也没出现这个问题(PS,服务器上有6个tomcat),换成128G内存的新服务器反而出现这个问题,让人费解,网站大部分资料均是说调整如上参数
请各位大神给指点迷津,谢谢

展开
收起
落地花开啦 2016-05-30 17:10:56 2591 0
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    xmx加到8g,permsize调到512m,maxpermsize 1g

    2019-07-17 19:20:47
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
内存取证与IaaS云平台恶意行 为的安全监控 立即下载
云服务器ECS内存增强型实例re6全新发布 立即下载