> 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).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

Reply via email to