title: Problem with increasing Java heap size in Eclipse
body: <p>I have a problem with error saying <code>ERROR:  'Java heap space'</code>. I followed <a href="http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse?" rel="nofollow">these instructions</a> to increase the heap size for Eclipse, but it doesn't work. Eclipse seems to be ignoring the given values. My <code>eclipse.ini</code> file looks like this:</p>
  
  <pre><code>-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
  </code></pre>
  
  <p>The Eclipse version is 3.6.1 running on Mac.</p>
  
  <p>Any ideas what might be wrong?</p>