当程序运行,出行OutOfMemoryError的错误时候,一般是表示程序运行时候,内存分配不足。
在Myeclipse中可以这样更改内存的大小:
安装目录下的myeclipse\Genuitec\MyEclipse 8.xLatest
找到安装时候的myeclipse.ini文件,打开显示如下内容:
找到安装时候的myeclipse.ini文件,打开显示如下内容:
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-clean
-install
D:/java/myeclipse/Genuitec/MyEclipse 8.x Latest
-vm
D:/java/myeclipse/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
-configuration
configuration
-vmargs
-Xmx512m
../Common/plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-clean
-install
D:/java/myeclipse/Genuitec/MyEclipse 8.x Latest
-vm
D:/java/myeclipse/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
-configuration
configuration
-vmargs
-Xmx512m