Tomcat: Exception in thread "http-bio-8080-exec-3" java.lang.OutOfMemoryError
2018-06-14 23:43
1051 查看
又是一个坑啊啊啊啊啊 啊,真的是血泪史,要不要考虑点个赞!!!
环境:
服务器:阿里云
开发工具:eclipse
jdk版本:jdk:1.8
配置:2G cpu
----------------------------------------------------
错误:
Tomcat: Exception in thread "http-bio-8080-exec-3" java.lang.OutOfMemoryError
是tomcat的内存溢出,需要修改默认的内存大小
----------------------------------------------------
方法:
1、修改catalina.bat配置:自己百度,很多,但是好像我的不行
2、修改jre的默认tomcat内存大小:
-Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m
!!!!!!!!!!注意!!!!!!!!!!!
后面两个参数在jdk 1.8已经不能用了!!!!!!!
3、修改run 》run configuration》argument:
###############注意###################
方法2、3最好能都修改,并且参数值保持一致。。。。。。。。
转载请注明出处:https://blog.csdn.net/whandwho/article/details/80683759
相关文章推荐
- 启动tomcat时报错:Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Tomcat7启动报错:Exception in thread "http-apr-8080-exec-6" java.lang.OutOfMemoryError: PermGen space
- Tomcat溢出问题Exception in thread "http-apr-8080-exec-8" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space[解决方案]
- Exception in thread "http-bio-8080-exec-11" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-8" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- eclipse Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- 解决Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- eclipse:Exception in thread "http-bio-8080-exec-11" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-13" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8081-exec-3" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-10" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-13" java.lang.OutOfMemoryError: PermGen space
- Exception in thread ""http-bio-80"exec-1" java.lang.OutOfMemoryError: PermGen s解决方案
- [程序代写推荐]Exception in thread "http-apr-8080-exec-6" java.lang.OutOfMemoryError: PermGen space 解决!