读书人

myeclipse8.5 运作程序报错 java.lan

发布时间: 2012-08-26 16:48:06 作者: rapoo

myeclipse8.5 运行程序报错 java.lang.OutOfMemoryError
myeclipse8.5 运行程序报错 java.lang.OutOfMemoryError: Java heap space

1、window->Preferences->Java->Installed JREs,选择当前的JRE,然后edit它;在新窗口里设置Default VM Arguments为 -Xms1024M -Xmx1024M -XX:+PrintGC即可.

2,如果仅仅是想对某个工程的有效的话,从Debug... 或Run...里修改,在(x)=Arguments里设置和上面相同的参数即可。

3,如果Tomcat的话,window->Preferences->Application Servers->Tomcat->Tomcat 6.x,选择JDK设置即可。

读书人网 >Ruby Rails

热点推荐