Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Swap space errors at initial start of JVM

843798Dec 4 2007 — edited Dec 4 2007
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2008
Added on Dec 4 2007
4 comments
193 views