I am unable to run java if I set Xmx to 967 or a higher value.
C:\Documents and Settings\salesforce>java -Xmx967m -version Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
If I run the same command, but setting Xmx to 966, it runs correctly:
C:\Documents and Settings\salesforce>java -Xmx966m -version java version "1.7.0_25" Java(TM) SE Runtime Environment (build 1.7.0_25-b17) Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode)
Before executing the command 3GB of ram are available (task manager).
Environment:
- Java 1.7.0_25 32bits
- Windows server 2003 SP2, 4GB RAM