JRebel: ERROR Could not define reloadable class 'com.sun.proxy.$Proxy118': java.lang.OutOfMemoryError: PermGen space

MyEclipse由于配置了JRebel,所以是它报错,不过根本问题还是:java.lang.OutOfMemoryError: PermGen space

现在按照经验调整内存大小。

在MyEclipse的安装目录找到myeclipse.ini 

这是原来的myeclipse.ini 

#utf8 (do not remove)
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201103301700
-vm
binary/com.sun.java.jdk7.win32.x86_64_1.7.0.u45/bin/javaw.exe
-install
D:\Program Files\myeclipse2015stable2
-vmargs
-Xmx768m
-XX:MaxPermSize=320m
-XX:ReservedCodeCacheSize=64m
-Dosgi.nls.warnings=ignore

现在修改为:

#utf8 (do not remove)
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201103301700
-vm
binary/com.sun.java.jdk7.win32.x86_64_1.7.0.u45/bin/javaw.exe
-install
D:\Program Files\myeclipse2015stable2
-vmargs
-Xmx768m
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=64m
-Dosgi.nls.warnings=ignore

 但实际上最后依然会报此错,而更换项目默认的发布地址才有真正解决此问题--Eclipse中的Web项目自动部署到Tomcat(转)

posted @ 2016-03-01 09:49  Tom1997  阅读(1375)  评论(0编辑  收藏  举报