title: Increase JVM max heap size for Eclipse
body: <p>I am trying to increase the max heap size for my Eclipse. I have tried specifying in <code>eclipse.ini</code> or through the command line, but are not working. </p>
  
  <p>My max heap size has the exact same limit before (running jconsole) and after (<code>System.out.println(java.lang.Runtime.getRuntime().maxMemory());</code>) starting Eclipse. 1.8G</p>
  
  <ol>
  <li>Is there any way to modify JVM heap size before it is launched (ex. a config file?)</li>
  <li>What could I be doing wrong when specifying heap size to Eclipse?</li>
  </ol>
  
  <p>This is the command:</p>
  
  <pre><code>./eclipse/eclipse -debug -consoleLog -vmargs -Xms1000m -Xmx6000m -XX:-UseGCOverheadLimitcl
  </code></pre>
  
  <p>This is my <code>eclipse.ini</code> (which values are overwritten by the specified eclipse launching parameters):</p>
  
  <pre><code>-startup
  plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
  --launcher.library
  plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813
  -product
  org.eclipse.epp.package.java.product
  --launcher.defaultAction
  openFile
  -showsplash
  org.eclipse.platform
  --launcher.XXMaxPermSize
  256m
  --launcher.defaultAction
  openFile
  -vmargs
  -Dosgi.requiredJavaVersion=1.6
  -Dhelp.lucene.tokenizer=standard
  -XX:MaxPermSize=6000m
  -Xms1000m
  -Xmx6000m
  </code></pre>