Id like to run a memory intensive java program and limit how much physical memory it can use. 

Is possible to configure the JVM to use no more than 1gb of RAM, and use only virtual memory after it has used the first 1gb of RAM? 

I'd like the program to be able to have as much address space as it needs (Several GB), but do not want it using all of the available RAM on the machine.