Hola,

>> But, when I close down a client window, the
>> memory consumption remains at it's peak (and climbs with each
>> successive new client opened) In other words, memory consumption
>> increments but never decrements, necessitating a server bounce at
>> unacceptable frequency.
>
>What is your definition of 'never'?
>
>Java cannot immediately reclaim the memory used by that user's sesson
if
>the user closes the browser. Tomcat doesn't know that the client has
>closed their browser. It must wait until the session times out (30
>minutes, I think) before the session can be cleaned up automatically.
>Solutions?

30 minutes is the default session timeout, yes.  But your first question
to the original poster, i.e. the definition of 'never', is a very good
question.

Remember that the JVM heap size grows monotonically.  For example, if
you need 50MB at some point and the JVM can allocate that, it will.
Then sessions timeout and you only need 30MB, so the JVM will garbage
collect.  You will end up with 30MB allocated and 20MB free: the total
will never go above the previous max (50MB) for the lifetime of the JVM.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to