启动tomcat时报错:Exception in thread "http-bio-8080-exec-42"
启动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
解决方法:
1、可以手动去tomcat home/bin/catalina.st里面设置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
2、可以在开发工具里面设置