tomcat内存溢出怎么解决
1、常见的一般会有下面三种情况:1.OutOfMemoryError: Java heap space ;2.OutOfMemoryError: PermGen space ;3.OutOfMemoryError: unable to create new native thread. 。
2、内存溢出: java.lang.OutOfMemoryError:PermGen space,后台日志。
3、查看内存 free –m。
4、空闲内存=free+buffers+cached=total-used。
5、查看后台ze水瑞侮瑜bra项目的tomcat内存:cat /opt/zebra/tomcat/bin/cata造婷用痃lina.sh,查看以下内容:export JAVA_OPTS="-Dwebapp=zebra.tomcat-Dfile.encoding=GB18030 -Xmx4096m -Xms1024m-Djava.awt.headless=true"。
6、当-Xmx1024m中的值大于free –m查看到的系统实际空闲内存时,出现内存溢出错误。需要修改-Xmx1024m中的值,使其小于实际空闲内存。
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:54
阅读量:50
阅读量:27
阅读量:75
阅读量:89