Myeclipse8.0 内存溢出解决方法
java heap space
最近使用Myeclipse老是发生内存溢出,报一个什么"MyEclipse has detected that less than 5% of the"错误,然后就卡在了,几乎动不了了。也经常在程序发生"java heap space"这种错误,搞到我非常郁闷,要知道,我电脑内存是4g的。
后来,果断抛弃Myeclipse8.0 ,换了一个Myeclipse6.5 速度飞起来,然后再修改D:\MyEclipse 6.5\eclipse\eclipse.ini修改为:
-clean
-showsplash
com.genuitec.myeclipse.product.ide
--launcher.XXMaxPermSize
256m
-vmargs
-Xms128m
-Xmx612m
-Duser.language=en
-XX:PermSize=612M
-XX:MaxPermSize=621M
关于,程序提示"java heap space",在myeclipse里边的tomcat里边"JDK"右侧"Optional Java VM arguments"里边填入:
-Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m
再启动程序,原来需要190s+的时间,现在只需要60s+,哈哈,调试也不报错了。