我正在使用 Eclipse,我得到了java.lang.OutOfMemoryError: PermGen space
错误。在 Eclipse FAQ 中,它说我应该将这些行添加到 eclipse.ini:
--launcher.XXMaxPermSize
[xxx]m
其中 xxx 是我想使用的内存大小(我试过 256)。但是在我这样做之后,我Failed to create Java Virtual Machine
在 Eclipse 启动时遇到错误。我应该怎么做才能让它工作?
编辑前我的 eclipse.ini 文件:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx1024m