您的位置:首页 > 编程语言 > Java开发

关于使用myeclise“MyEclipse has detected that less than 5% of .....”的错误

2016-11-28 11:00 369 查看






关于使用myeclise“MyEclipse has detected that less than 5% of .....”的错误

标签myeclipse.ini   myeclipse
64   java heap space myeclipse  
转自http://卢水发.iteye.com/blog/1678311

MyEclipse has detected that less than 5% of the 472MB of Tenured Gen (Heap memory) space remains. 

It is strongly recommended that you exit and restart MyEclipse with new virtual machine 

memory paramters to increase this memory. 

Failure to do so can result in data loss. 


 

MyEclipse报出-vmargs -Xmx512m -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=64m 

MyEclipse has detected that less than 5% of the 3MB of Survivor Space (Heap memory) space remains. 

It is strongly recommended that you exit and restart MyEclipse with new virtual machine 

memory paramters to increase this memory.  Failure to do so can result in data loss. 

Recommended memory arguments: 

-vmargs 

-Xmx512m 

-XX:MaxPermSize=256m 

-XX:ReservedCodeCacheSize=64m 

D:\Genuitec\MyEclipse 8.5\myeclipse.ini 

-startup 

../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar 

--launcher.library 

../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 

-install 

D:/Genuitec/MyEclipse 8.5 

-vm 

D:/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll 

-configuration 

configuration 

-vmargs 

-Xmx512m 

-XX:MaxPermSize=512m 

-XX:ReservedCodeCacheSize=512m 

重新启动Myeclipse; 

很大的web工程,用tomcat默认分配的内存空间无法启动,如果不是在myeclipse中启动tomcat可以对tomcat这样设置: 

TOMCAT_HOME/bin/catalina.bat 中添加这样一句话: 

set JAVA_OPTS= -Xmx1024M -Xms512M -XX:MaxPermSize=256m 

如果要在myeclipse中启动,上述的修改就不起作用了,可如下设置: 

Myeclipse->preferences->myeclipse->servers->tomcat->tomcat×.×->JDK面板中的 

Optional Java VM arguments中添加:-Xmx1024M -Xms512M -XX:MaxPermSize=256m
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐