Memory overflow in MyEclipse can be resolved by setting the Myeclipse.ini virtual memory size as follows:
1, modify the Myeclipse.ini
In the MyEclipse installation directory G:\MyEclipse8.5\Genuitec\MyEclipse 8.5 has a Myeclipse.ini configuration file, set as follows:
-vmargs
-xmx512m
-xx:maxpermsize=256m
-xx:reservedcodecachesize=64m
2. Set Default VM Arguments
In MyEclipse, open windows-> preferences->java->installed jres-> Click on the Jdk->edit->default VM you are using Arguments text box, type:-xms64m-xmx256m
3. If the Web project also reported memory overflow, you may want to set up tomcat memory.
(1) Tomcat installation root directory%tomcat%bin/catalina.bat file, SET java_opts line;
(2) MyEclipse Configure the Web server configuration window-preferences-myeclipse-servers-tomcat 5.x-jdk Optional Java VM arguments is configured as:
-xms512m-xmx1024m-xx:maxpermsize=512m
Or:
-xms256m
-xmx1024m
-xx:permsize=512m
-xx:maxpermsize=512m
-xx:reservedcodecachesize=128m
If it is a WebLogic server, configure the JDK to:
-xms256m-xmx512m-xx:compilethreshold=8000-xx:permsize=256m-xx:maxpermsize=512m-xverify:none-da
--------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------
Your own native Myeclipse.ini configuration file is set up as follows:
-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:/myeclipse
-vm
Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
-vmargs
-xms256m
-xmx1024m
-xx:maxpermsize=512m
-xx:reservedcodecachesize=128m
MyEclipse8.6 prompt for out-of-memory solutions (pro-Test, perfect solution)