3

我正在做一个非常大的项目,即使我增加了虚拟内存,在刷新项目时,Eclipse 也会崩溃。错误是java heap space error

这是当前的设置:

-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 将无法启动。

4

2 回答 2

2

几点评论:

即使这些不是堆空间参数,它们也可能会影响 Eclipse 的运行方式。

于 2011-05-16T07:01:54.620 回答
0

这是具有 4GB 内存的 Eclipse NEON 和 os Windows 10 的最佳配置:

-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.jee.product
–launcher.defaultAction
openFile
–launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
256m
–launcher.defaultAction
openFile
-vm
C:/Program Files/Java/jdk1.8.0_121/bin/javaw.exe
–launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx512m
-XX:PermSize=256m
-XX:MaxPermSize=512m

如果您有 8GB 的​​ Ram 修改 -XX:PermSize=512m 和 -XX:MaxPermSize=1024m。有关完整示例,请参见此处: https ://lentux-informatica.com/best-configuration-eclipse-ini/

于 2018-07-23T08:14:11.927 回答