Java Heap and -Xms/-Xmx

Jon Masamitsu Jon.Masamitsu at Sun.COM
Tue Jul 1 10:55:51 PDT 2008


Keith,

Is this your question with numbers.

If flag -Xmx1g -Xms500m are set on the command line
and there is 2g of physical memory, will the VM
increase the maximum heap size to 2g?

No, the VM would not set the maximum heap size to
2g.  In general, the user gets what is requested
on the command line.

Was that the question?

Jon

Keith Holdaway wrote:
> If -Xms is set to a smaller value than -Xmx, and -Xmx is set to a value less than the total RAM, will the VM commit the -Xmx setting to physical addressable space ONLY?
> 
> thanks
> 
> Keith R Holdaway
> Java Development Technologies
> 
> SAS The Power to Know
> 
> Carpe Diem
> 
> 



More information about the hotspot-gc-dev mailing list