I have been using my eclipse instance for months and on the day of a crucial release it stopped working (May be just to prove Murphy's law). I had several instance of eclipse (I usually have different instance for J2EE, Android, Blackberry etc) and all the instance showed me exactly the same error.
[xml]
JVM terminated. Exit code=-1
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=512M
-Djava.class.path=D:eclipseAndroideclipseplugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-os win32
-ws win32
-arch x86
-showsplash
-launcher D:eclipseAndroideclipseeclipse.exe
-name Eclipse
--launcher.library D:eclipseAndroideclipseplugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519eclipse_1206.dll
-startup D:eclipseAndroideclipseplugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-product org.eclipse.epp.package.java.product org.eclipse.platform
-vm C:Javajre6binclientjvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=512M
-Djava.class.path=D:eclipseAndroideclipseplugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
[/xml]
Tweaking all the memory size parameters in
eclipse.ini but irrespective of whatever permutation and combination I tried it didn't budge.
I then removed all the contents of
eclipse.ini and voila! it worked perfectly but then I thought these values are there for a reason and removing everything might cause some other issue. Hence I started putting back the values one by one and figured out that removing the following 2 lines in the ini file fixed the problem.
[java]
--launcher.XXMaxPermSize
512M
--launcher.XXMaxPermSize
512M
[/java]
After pin pointing the problem area I added these parameters but tried with different values and after trial and error found that value 128M worked perfectly. Now the final
eclipse.ini looks like the one shown below.
[java]
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.java.product
-showsplash
--launcher.XXMaxPermSize
128M
--launcher.XXMaxPermSize
128M
org.eclipse.platform
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
[/java]
I am still not sure what is the root cause of this issue. May be restarting the machine and reverting back the value to 512 M might do the trick.