我正在处理一个非常大的项目,即使我增加虚拟内存,在刷新项目时,Eclipse 也会崩溃。错误是 java 堆空间错误。
这是当前设置:
-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
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx512m
如果我再增加它,Eclipse 将不会启动。
最佳答案
一些评论:
- 你不应该定义两次
launcher.XXMaxPermSize
- 你不应该使用 512M(只有 512m,参见“FAQ How do I increase the permgen size available to Eclipse?”)
- 根据用于启动 Eclipse 的 JDK,您可能希望坚持使用 Sun 选项
-XX:MaxPermSize=512m
即使这些不是堆空间参数,它们也可能会影响 Eclipse 的运行方式。
关于Eclipse INI配置问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6013528/