Issue
I have a problem with error saying ERROR: 'Java heap space'
. I followed these instructions to increase the heap size for Eclipse, but it doesn't work. Eclipse seems to be ignoring the given values. My eclipse.ini
file looks like this:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=512m
-Xms512m
-Xmx1024m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.ecli
pse.swt.internal.carbon.smallFonts
The Eclipse version is 3.6.1 running on Mac.
Any ideas what might be wrong?
Solution
Are you sure you are configuring parameters for your application execution and not for Eclipse itself?
I usually configure heap size in the Run | Run Configuration dialog.
Answered By - Olaf
Answer Checked By - Pedro (JavaFixing Volunteer)