Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
来源:互联网 发布:时间费用优化 编辑:程序博客网 时间:2024/05/18 02:40
此问题属于内存溢出
PermGen space的全称是Permanent Generation space,是指内存的永久保存区域,
解决办法:
手动设置MaxPermSize大小
第一步:
修改TOMCAT_HOME/bin/catalina.bat(Linux下为catalina.sh),
在cataline文件的“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"
第二步:
在eclipse的servers栏下的tomcat双击或者右键点击open出现设置页面如下图
然后点击open launch configuration
出现如下图,
然后在arguments标签框下面的VM Arguments 框后面接上自己上一步在TOMCAT_HOME/bin/catalina.bat文件里设置的参数 :
-XX:PermSize=128M -XX:MaxPermSize=512m
重启运行即可。
- 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
- 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
- Exception in thread ""http-bio-8080"-exec-1" java.lang.OutOfMemoryError: PermGen space Exception in
- Exception in thread "http-bio-8080-exec-11" 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-10" 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-13" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-8" java.lang.OutOfMemoryError: PermGen space
- 启动tomcat时报错:Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8089-exec-8" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8037-exec-45" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-apr-8080-exec-6" java.lang.OutOfMemoryError: PermGen space 解决!
- BootStrap让两个控件在一行显示
- 如何才能不崩溃 9: Mindset
- hdu 1208(简单dp)
- python 网络编程 openurl [errno 10060]
- 网站的高性能架构
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- 面试题汇总
- 希尔排序
- 【追求进步】丑数
- Java并发编程:线程池的使用
- Windows文件最后访问时间设置
- nyoj 35 表达式求值
- 最长回文子序列
- 笔试笔记3 HTTPS HTTP