title: Eclipse IDE fail to launch with JVM Terminated. Exit code=-1
body: <p>I was having an issue with Eclipse IDE failing to launch with following error message: "JVM Terminated. Exit code=-1"</p>
  
  <p>After some googling, I've semi-unintentionally found the solution and was able to get the IDE to launch correctly.  What I did was to set -Xmx JVM argument in eclipse.ini to a value that is lower than the default value specified (-Xmx512m).  Although I was able to get the IDE to launch, I was curious as to why it was happening and why this solution worked.</p>
  
  <p>Here are some environment info:<br>
  <strong>Eclipse IDE:</strong> eclipse-rcp-galileo-SR1-win32<br>
  <strong>JVM:</strong> Java(TM) SE Runtime Environment (build 1.6.0_10-b33)<br>
  <strong>Physical Memory:</strong> 2GB</p>
  
  <p>Available memory at launch time for >1GB.</p>
  
  <p>Initially, I changed the value to 256m and Eclipse launch correctly and after some experiment I found out that it launches correctly until it is set to 348m.  However, once the value is set to 349m, I get a dialog with the above error message.  The full message is:</p>
  
  <pre><code>JVM terminated. Exit code=-1
  -Dosgi.requiredJavaVersion=1.5
  -Xmx349m
  -XX:MaxPermSize=256m
  -Djava.class.path=C:\tools\eclipse-rcp-galileo-SR1-win32\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
  -os win32
  -ws win32
  -arch x86
  -showsplash C:\tools\eclipse-rcp-galileo-SR1-win32\eclipse\\plugins\org.eclipse.platform_3.3.201.v200909170800\splash.bmp
  -launcher C:\tools\eclipse-rcp-galileo-SR1-win32\eclipse\eclipse.exe
  -name Eclipse
  --launcher.library C:\tools\eclipse-rcp-galileo-SR1-win32\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
  -startup C:\tools\eclipse-rcp-galileo-SR1-win32\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
  -product org.eclipse.epp.package.rcp.product
  -vm c:\tools\java6\bin\..\jre\bin\client\jvm.dll
  -vmargs
  -Dosgi.requiredJavaVersion=1.5
  -Xmx349m
  -XX:MaxPermSize=256m
  -Djava.class.path=C:\tools\eclipse-rcp-galileo-SR1-win32\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
  </code></pre>
  
  <p>Does anyone have any idea or clue as to why this may be happening??</p>
  
  <p>Thank you.</p>