Java Heap and -Xms/-Xmx
Jon.Masamitsu at Sun.COM
Tue Jul 1 10:55:51 PDT 2008
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?
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?
> Keith R Holdaway
> Java Development Technologies
> SAS The Power to Know
> Carpe Diem
More information about the hotspot-gc-dev