eclipse运行maven的jetty插件java.lang.OutOfMemoryError: PermGen space内存溢出
2017-04-01 16:41
483 查看
系统运行在MAVEN中的jetty插件下,当在ECLIPSE运 clean jetty:run时系统提示OutOfMemoryError:
PermGen space。
解决办法:
设置run as --->run configuragtions--->jre标签下的属性VM arguments:
-server -Xms512m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled
-XX:+PrintGCDetails -Xloggc:%M2_HOME%/gc.log
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%M2_HOME%/java_pid.hprof
其中参数说明如下:
-XX:+CMSPermGenSweepingEnabled : 允许permgenspace的垃圾回收
-XX:+CMSClassUnloadingEnabled : allows the garbage collector to remove even classes from the memory
-XX:PermSize=256M -XX:MaxPermSize=256M : raises the amount of memory allocated to the permgenspace
解决失败用例:
1.在系统环境变量中添加 MAVEN_OPTS="-Xms40m -Xmx512m -XX:PermSize=512m" 不行,
2.在eclipse.ini文件中添加 -Xms40m -Xmx512m -XX:PermSize=512m 也不行。
3.run as --->run configuragtions--->jre标签下的属性VM arguments:
-Xms512m -Xmx1024m
PermGen space。
解决办法:
设置run as --->run configuragtions--->jre标签下的属性VM arguments:
-server -Xms512m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled
-XX:+PrintGCDetails -Xloggc:%M2_HOME%/gc.log
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%M2_HOME%/java_pid.hprof
其中参数说明如下:
-XX:+CMSPermGenSweepingEnabled : 允许permgenspace的垃圾回收
-XX:+CMSClassUnloadingEnabled : allows the garbage collector to remove even classes from the memory
-XX:PermSize=256M -XX:MaxPermSize=256M : raises the amount of memory allocated to the permgenspace
解决失败用例:
1.在系统环境变量中添加 MAVEN_OPTS="-Xms40m -Xmx512m -XX:PermSize=512m" 不行,
2.在eclipse.ini文件中添加 -Xms40m -Xmx512m -XX:PermSize=512m 也不行。
3.run as --->run configuragtions--->jre标签下的属性VM arguments:
-Xms512m -Xmx1024m
相关文章推荐
- eclipse运行maven的jetty插件java.lang.OutOfMemoryError: PermGen space内存溢出
- Eclipse+Maven+Jetty 环境下java.lang.OutOfMemoryError: PermGen space及其解决方法
- Eclipse中通过Tomcat运行J2EE项目java.lang.OutOfMemoryError: PermGen space的解决方案
- maven jetty java.lang.OutOfMemoryError: PermGen...
- eclipse运行报java.lang.OutOfMemoryError: PermGen space解决方法(自己备注用)
- eclipse运行报java.lang.OutOfMemoryError: PermGen space解决方法
- eclipse启动或者运行过程中tomcat出现内存溢出错误 java.lang.OutOfMemoryError: PermGen space
- Eclipse运行程序提示:Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
- 在eclipse启动tomcat运行一个web程序,报java.lang.OutOfMemoryError: PermGen space
- Eclipse中通过Tomcat运行JavaWeb项目发生内存溢出:java.lang.OutOfMemoryError: PermGen space 错误的解决方案
- Eclipse+Maven环境下java.lang.OutOfMemoryError: PermGen space及其解决方法
- Eclipse运行大量文件抛出异常java.lang.OutOfMemoryError: GC overhead limit exceeded
- 在Eclipse中运行Jboss时出现java.lang.OutOfMemoryError:PermGen space及其解决方法
- Gradle 使用Jetty插件启动web项目时出现"java.lang.OutOfMemoryError: PermGen space"解决方法
- eclipse运行报java.lang.OutOfMemoryError: PermGen space解决方法
- Eclipse中通过Tomcat运行JavaWeb项目发生内存溢出:java.lang.OutOfMemoryError: PermGen space 错误的解决方案
- Eclipse运行Jboss时java.lang.OutOfMemoryError:PermGen space异常处理
- jetty插件java.lang.OutOfMemoryError: PermGen space内存溢出
- eclipse运行java.lang.OutOfMemoryError: PermGen space解决方法
- Eclipse+Maven环境下java.lang.OutOfMemoryError: PermGen space及其解决方法