Problem with Java Heap Sizing in Eclipse

I have a problem with an error saying ERROR: 'Java heap space'. I followed these instructions to increase the heap size for Eclipse, but it does not work. Eclipse seems to be ignoring these values. My file is eclipse.inias follows:

-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

Eclipse version 3.6.1 works on Mac.

Any ideas what could be wrong?

+3
source share
5 answers

Are you sure you are setting options to run your application, not Eclipse itself?

I usually adjust the heap size in Run | Launch the configuration dialog.

+12
source

Try installing -vmargs directly into the Eclipse executable instead of the eclipse.ini file .

eclipse -vmargs -Xms512m -Xmx730m

Eclipse , , JVM "vmargs" eclipse.ini.

+6

Humm... -XX: MaxPermSize = 512m -Xms512m -Xmx1024m . ? ? JVM 32- ? ? , ANT : http://ericfickes.com/2008/10/osx-flexbuilder-java-heap-space-error/ /? .

0

Eclipse.ini eclipse . , .

: java MacOSX XX: MaxPermSize XX.

0

For those who get the same error in Eclipse, try restoring the cache files (if they were accidentally deleted in the WAR folder), this way I solve the same problem as part of my Eclipse project. note: I do not think there is a relationship between the memory allowed by Eclipse and the memory for the application.

0
source

All Articles