6

Eclipse 3.5: Error occurred during initialization of VM Could not reserve enough space for object heap ?

Posted by Stefano on Jan 26, 2010 in Uncategorized

I had problems running both eclipse-jee-galileo-win32 and eclipse-jee-galileo-SR1-win32 with the default eclipse.ini since message


Error occurred during initialization of VM
Could not reserve enough space for object heap

was issued when trying to run the ide.

This error seems quite common but I didn’t find a working solution so here is tentative workaround in order to bypass it and obtain a quite stable eclipse environment: replace the default eclipse.ini file content (here is the eclipse-jee-galileo-SR1-win32 eclipse.ini anyway the same apply to eclipse-jee-galileo-win32):


-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.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

with


-showsplash org.eclipse.platform
-vmargs
-XX:MaxPermSize=256m
-Xms40m

This warkaround is partially based on this article . It was tested on Microsoft Windows XP SP3 , it’s totally heuristic and , for sure, will have plenty of side effects so beware.

I also tried with an empty eclipse.ini (crazy solution but you never know…) anyway it takes almost 10 minutes before eclipse crashing with a java null pointer exception :D.

Eclipse-SDK-3.5-win32 Update:

Here is a sample .ini file I used with success on eclipse-SDK-3.5-win32 to solve the same problem:


-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-showsplash
org.eclipse.platform

Tags:

© 2024 stefanoperticoni.org