title: Java “Error occurred during initialization of VM” Error
body: <p>I am using eclipse in windows 7. When I set the <strong>-Xmx</strong> argument larger than <strong>1500m</strong>, the following error occurs: </p>
  
  <pre><code>Error occurred during initialization of VM
  Could not reserve enough space for object heap
  </code></pre>
  
  <p>Both eclipse and jdk are 64 bit version. The physical memory of my machine is <strong>4g</strong>. Here is eclipse.ini file:</p>
  
  <pre><code>-startup
  plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
  --launcher.library
  plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
  -product
  org.eclipse.epp.package.java.product
  --launcher.defaultAction
  openFile
  --launcher.XXMaxPermSize
  256M
  -showsplash
  org.eclipse.platform
  --launcher.XXMaxPermSize
  256m
  --launcher.defaultAction
  openFile
  -vmargs
  -Dosgi.requiredJavaVersion=1.5
  -Xms400m
  -Xmx3840m
  </code></pre>
  
  <p>I thought under 64 bit java I could use more than 1.5g memory, but eclipse keeps throw the above error. Any ideas?</p>
  
  <p>cheng</p>