我的 eclipse 因 OOO: perm-gen 错误而崩溃。我打开了 eclipse.ini
来增加它,但令我惊讶的是我发现了两次 XXMaxPermSize
如下所示。我不确定为什么有两个,哪个一个要改变。
-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
最佳答案
来自官方Eclipse.ini文档,您需要删除第一个,然后只更改第二个。
-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
关于java - --launcher.XXMaxPermSize 在 eclipse.ini 中出现两次,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14865647/