I've a wierd error, very simple to reproduce (for me anyway).
C:\>java -Xmx760M -version
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode)
C:\>java -Xmx761M -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
I've 2G of ram on the machine and the page file is set to 3G (and set to get deleted after each reboot). There's ~400M in use when I ran the above test so there should be plenty of memory available to run an simple -version command.
I've checked my RAM, all's ok, defragged (both disk & pagefile).
Even tried different verions of the JDK with no luck
C:\>java -Xmx760M -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)
C:\>java -Xmx761M -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Anyone have any clue as to what's going on, or even if there are any other things I can try. The point being I need to be able to create VM's of 1024M and greater.
Cheers,
Paul.