I had this problem recently:

JVM terminated. Exit code=-1
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256M
-Djava.class.path=C:\Program Files\eclipse\plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
-os win32
-ws win32
-arch x86
-showsplash C:\Program Files\eclipse\\plugins\org.eclipse.platform_3.3.100.v200806172000\splash.bmp
-launcher C:\Program Files\eclipse\eclipse.exe
-name Eclipse
–launcher.library C:\Program Files\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.100.v20080509-1800\eclipse_1114.dll
-startup C:\Program Files\eclipse\plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
-vm C:\Program Files\Java\jre1.6.0_06\bin\client\jvm.dll
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256M
-Djava.class.path=C:\Program Files\eclipse\plugins\org.ecipse.equinox.launcher_1.0.100.v20080509-1800.jar

here’s the fix

My laptop computer only has 512MB of ram available. I don’t have all that much disk space either. It seems that Eclipse wanted 512MB of xmx memory.. So i just opened C:\Program Files\eclipse\eclipse.ini and changed the amount of xmx to 256MB, which my system should be able to handle.

One Comment

    • AXsY
    • Posted September 22, 2008 at 3:11 pm
    • Permalink

    Really, it works, so simple!… Thanks!


One Trackback/Pingback

  1. [...] the vmargs parameters (also suggested by bobobobo) and in particular changing the maximum heap [...]

Post a Comment