--launcher.XXMaxPermSize appears twice in eclipse.ini
Asked Answered
D

3

7

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
Defluxion answered 14/2, 2013 at 0:6 Comment(0)
S
4

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
Spumescent answered 14/2, 2013 at 14:33 Comment(2)
Why is the -XX:MaxPermSize=256m line needed as well as the --launcher.XXMaxPermSize 256m bit?Tepefy
--launcher.XXMaxPermSize is Sun specific and considered if there is no -XX:MaxPermSize size specified. I would prefer using -XX:MaxPermSize only.Spumescent
C
3

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).

Category answered 14/2, 2013 at 14:41 Comment(0)
R
0

If your eclipse is bootstrap by JDK 1.8 this has no relevance and can be ignored. http://openjdk.java.net/jeps/122 http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_available_to_Eclipse%3F

Ragout answered 19/8, 2014 at 16:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.