'java -Xmx ' question

java -Xmx seems to work up to about 1500 MB on my PC. It has 2GB RAM.I do not know if it will help but I increased the virtual memory of Windows to 16000MB.So my question is there any way my application can run/have heap bigger than the RAM?
[276 byte] By [dimkova] at [2007-11-27 3:13:28]
# 1

Standard windows has an addressable memory space of 4 gig.

Under normal operation 2 gig of that is reserved for the OS, so any single app can only address 2 gig.

Due to the way the Sun VM is built the maximum is lower than that. Depending on the VM version is is in the 1.6 to 1.4 range.

jschella at 2007-7-12 8:15:58 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

> ... is there any way my application can have bigger heap?

Get a 64-bit CPU, and a 64-bit OS, and a 64-bit JVM

then you can have a much larger heap size.

If you exceed your actual memory

your PC will start swapping and you are likely to see serious performance degradation.

tschodta at 2007-7-12 8:15:58 > top of Java-index,Java HotSpot Virtual Machine,Specifications...