Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

--launcher.XXMaxPermSize appears twice in eclipse.ini

My eclipse is crashing with OOO: perm-gen error. I opened up the eclipse.ini to increase it but to my surprise I found two occurences of the XXMaxPermSize as shown below.. I am not sure why there are two and which one to change.

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m
like image 750
Aravind Yarram Avatar asked Feb 14 '13 00:02

Aravind Yarram


2 Answers

From the official Eclipse.ini documentation, you need to remove the first one and then change just the second one.

-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
like image 97
Ajay George Avatar answered Oct 24 '22 10:10

Ajay George


I suppose that it's a minor mistake, which will be fixed some time. From experience, I can tell that with duplicate options in the INI file the last one counts. It's also safe to remove any duplicates (e.g. launcher.defaultAction and launcher.XXMaxPermSize).

like image 3
Andreas Mayer Avatar answered Oct 24 '22 12:10

Andreas Mayer