3

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.

alex
  • 3,710
  • 32
  • 44
GoodSp33d
  • 6,252
  • 4
  • 35
  • 67
  • See [What are the best JVM settings for Eclipse?](http://stackoverflow.com/questions/142357/what-are-the-best-jvm-settings-for-eclipse). – lschin May 16 '11 at 05:33

2 Answers2

2

A few comments:

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

Lii
  • 11,553
  • 8
  • 64
  • 88
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • It still crashes :( the project is ~2gb of code it crashes when refreshing – GoodSp33d May 16 '11 at 10:13
  • @kantu: are the settings of http://stackoverflow.com/questions/142357/what-are-the-best-jvm-settings-for-eclipse helping here? What version of Eclipse are you using? (v20090519 seems old) Any chance of trying with a 3.6.2 and the latest JDK possible? – VonC May 16 '11 at 10:26
0

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/