Why it is often suggested to have -Xms and -Xmx of same value?

Why it is often suggested to have -Xms and -Xmx of same value?
[69 byte] By [yilativsa] at [2007-11-26 14:41:12]
# 1
That allows you to specify a specific heap size - no less, no more.
ChuckBinga at 2007-7-8 8:22:35 > top of Java-index,Core,Monitoring & Management...
# 2

Often suggested by whom?

I never use -Xms. I take the view that my forcing a minimum size I may very well be using more memory than I need - I just let the VM grow it up to -Xmx if it needs. Also, managing the heap takes time and effort, so by not arbitrarily forcing it to be too big, you save a small amount of CPU time.

dannyyatesa at 2007-7-8 8:22:35 > top of Java-index,Core,Monitoring & Management...
# 3

> Often suggested by whom?

e.g from http://www.caucho.com/resin-3.1/doc/jvm-tuning.xtp

"It is good practice with server-side Java applications like Resin to set the minimum -Xms and maximum -Xmx heap sizes to the same value."

Same suggestion i saw in Oracle and BEA documentations.

The only benefit of such configuration I know is faster startup on application that use almost all provided memory.

I was wondering are there another benefits?

Regards,

Vitaliy S

yilativsa at 2007-7-8 8:22:35 > top of Java-index,Core,Monitoring & Management...
# 4
> Why it is often suggested to have -Xms and -Xmx of> same value?so that the VM doesn't have to waste time by asking for more memory from the OS at runtime, it's all done once at startup
CarrieHunta at 2007-7-8 8:22:35 > top of Java-index,Core,Monitoring & Management...