I am using eclipse in windows 7. When I set the -Xmx argument larger than 1500m, the following error occurs:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Both eclipse and jdk are 64 bit version. The physical memory of my machine is 4g. Here is eclipse.ini file:
-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
I thought under 64 bit java I could use more than 1.5g memory, but eclipse keeps throw the above error. Any ideas?
cheng