Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
来源:互联网 发布:mac os系统使用教程 编辑:程序博客网 时间:2024/05/16 05:43
这个问题 是tomcat下 加载的类过多,
解决方法是
解决方法: 1、 手动设置MaxPermSize大小
修改TOMCAT_HOME/bin/catalina.bat(Linux下为catalina.sh),在“echo"Using CATALINA_BASE: $CATALINA_BASE"”上面加入以下行:
setJAVA_OPTS=%JAVA_OPTS% -server -XX:PermSize=128M-XX:MaxPermSize=512m
catalina.sh下为:
JAVA_OPTS="$JAVA_OPTS-server -XX:PermSize=128M-XX:MaxPermSize=512m"
但是我这样改了还是不行,在java visualVM 下面发现加载了 15000个类 但是permsize 其实不大
想到了 最近在webapps 下还加载了另外的工程
然后把这个工程 拿走, eclispse 再次启动 tomcat
加载类 只有8100
问题解决
0 0
- 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 解决!
- IKHLKBHKBGKBJK
- CentOs6.5中安装和配置vsftp简明教程
- Codeforces Round #358 (Div. 2)
- hello
- 缘来缘去,这个世界的缘分有多重要?
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- DuiLib学习(二)
- js正则难点突破--惰性匹配和贪婪匹配
- [!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master Cloning
- 基于ALS的线推荐系统
- 创建触发器 字段自增长
- socket kernel
- com.mysql.jdbc.PacketTooBigException: Packet for query is too large (4232009 > 4194304).
- Java垃圾收集器之G1介绍(一)