-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 2/21/12 1:06 PM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
>> Subject: Re: Free Memory vs. Total Memory vs. Max Memory
> 
>> I'll have to do some more reading about the JVM returning memory
>>  to the OS after the heap shrinks: if the JVM does not return the
>>  memory, then your most-recent peak-heap-size will dictate the 
>> amount of memory your process controls until it it shut down.
> 
> It doesn't really matter if the JVM returns the memory to the OS. 
> Even when not unmapped, the JVM won't try to use it, so the real 
> memory requirements of the process are reduced.  The unused pages 
> will disappear to the swap file if the RAM is needed for something 
> else; this will cause an extremely minor hiccup if the load
> increases and the JVM decides to expand the heap again and the
> pages have to read in (even though the contents are no longer of
> interest).

Okay, so it sounds like if the environment is such that reducing the
heap at intervals is important (many JVMs, peak-memory-load events are
rare, etc.) then using Xms < Xmx isn't a bad idea at all.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9D32oACgkQ9CaO5/Lv0PCssQCfTRXYxOe+4yiaLuzmsW1vnUB5
064AoKhpKa0H1ObhuKJWVv7pmyz/tSuR
=GcYu
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to