启动tomcat时报错:Exception in thread "http-bio-8080-exec-42"
启动tomcat时报一下的错误,而且一直持续不断Exceptioninthread"http-bio-8080-exec-2"java.lang.OutOfMemoryE...
启动tomcat时报一下的错误,而且一直持续不断
Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-3" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-4" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Timer-0" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-5" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Timer-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-6" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-7" 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-9" 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-11" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-13" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-12" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-14" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-15" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-16" 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-3" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-4" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Timer-0" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-5" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Timer-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-6" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-7" 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-9" 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-11" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-13" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-12" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-14" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-15" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-16" java.lang.OutOfMemoryError: PermGen space
求大神指导! 展开
展开全部
解决方案一:
设置MyEclipse中Tomcat使用的Jdk的VM arguments:
-Xms512m -Xmx1024m -XX:MaxNewSize=512m -XX:MaxPermSize=512m
如图:
解决方法二:
手动设置MaxPermSize大小
修改TOMCAT_HOME/bin/catalina.bat(Linux下为catalina.sh),在“echo "Using CATALINA_BASE: $CATALINA_BASE"”上面加入以下行:
set JAVA_OPTS=%JAVA_OPTS% -server -XX:PermSize=128M -XX:MaxPermSize=512m
catalina.sh下为:
JAVA_OPTS="$JAVA_OPTS -server -XX:PermSize=128M -XX:MaxPermSize=512m"
展开全部
内存溢出啊~
解决方法: . 手动设置MaxPermSize大小
修改TOMCAT_HOME/bin/catalina.bat(Linux下为catalina.sh),在“echo "Using CATALINA_BASE: $CATALINA_BASE"”上面加入以下行:
set JAVA_OPTS=%JAVA_OPTS% -server -XX:PermSize=128M -XX:MaxPermSize=512m
catalina.sh下为:
JAVA_OPTS="$JAVA_OPTS -server -XX:PermSize=128M -XX:MaxPermSize=512m"
解决方法: . 手动设置MaxPermSize大小
修改TOMCAT_HOME/bin/catalina.bat(Linux下为catalina.sh),在“echo "Using CATALINA_BASE: $CATALINA_BASE"”上面加入以下行:
set JAVA_OPTS=%JAVA_OPTS% -server -XX:PermSize=128M -XX:MaxPermSize=512m
catalina.sh下为:
JAVA_OPTS="$JAVA_OPTS -server -XX:PermSize=128M -XX:MaxPermSize=512m"
追问
我调过内存之后还报这样的错误,不知道还有什么其他方面的原因没?
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
修改tomcat的启动脚本,加大分配给jvm的内存
windows环境下修改catalina.bat,在开始的地方增加:
set JAVA_OPTS=-Xms512m -Xmx1024m
windows环境下修改catalina.bat,在开始的地方增加:
set JAVA_OPTS=-Xms512m -Xmx1024m
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2015-01-28 · 知道合伙人软件行家
关注
展开全部
参考你的服务器配置,然后做如下更改(注意飘红的数字):
Windows:
Modify bin\catalina.bat
Unix:
Modify catalina.sh
Add following scripts below"echo Using CATALINA_BASE: "%CATALINA_BASE%""
rem ----- Execute The Requested Command ---------------------------------------
set JAVA_OPTS=%JAVA_OPTS% -Xms2048m -Xmx4096m -XX:CompileThreshold=8000 -XX:PermSize=1024m -XX:MaxPermSize=2048m -Xverify:none -da
echo Using JAVA_OPTS:%JAVA_OPTS%
echo Using CATALINA_BASE: "%CATALINA_BASE%"
Windows:
Modify bin\catalina.bat
Unix:
Modify catalina.sh
Add following scripts below"echo Using CATALINA_BASE: "%CATALINA_BASE%""
rem ----- Execute The Requested Command ---------------------------------------
set JAVA_OPTS=%JAVA_OPTS% -Xms2048m -Xmx4096m -XX:CompileThreshold=8000 -XX:PermSize=1024m -XX:MaxPermSize=2048m -Xverify:none -da
echo Using JAVA_OPTS:%JAVA_OPTS%
echo Using CATALINA_BASE: "%CATALINA_BASE%"
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询