GoodSp33d
GoodSp33d

Reputation: 6282

Eclipse INI Configuration problem

I am working on a project which is really big and even if I increase the virtual memory, on refreshing the project, Eclipse crashes. The error is java heap space error.

This is the current setup:

-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

If I increase it any more, Eclipse won't start.

Upvotes: 3

Views: 2205

Answers (2)

VonC
VonC

Reputation: 1324505

A few comments:

Even though those aren't the heap space parameters, they might influence how Eclipse runs.

Upvotes: 2

Rosario Mezzatesta
Rosario Mezzatesta

Reputation: 11

This is the best configuration for Eclipse NEON and o.s. Windows 10 with 4GB of Ram:

-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

If you have 8GB of Ram modify -XX:PermSize=512m and -XX:MaxPermSize=1024m. For complete example see here : https://lentux-informatica.com/best-configuration-eclipse-ini/

Upvotes: 0

Related Questions