What about classes with static method and/or static attributes ?

Are they deleted from the old webapp ?

-----Message d'origine-----
De : Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 5 novembre 2003 15:57
À : Tomcat Users List
Objet : RE: memory-leaks in servlets, tool for tracing ?


Howdy,

>You make a great point about how the app should stabilize it's memory
>usage over time. However, I've got a question about memory usage when I
>stop (via Tomcat manager) and reload a webapp via a WAR file. If I
>understand your point, and I'm close to the max heap size, shouldn't GC
>free up the memory from the old webapp? In my case, GC happens more
>frequently, but doesn't do a great job (not even close to freeing up
>the memory footprint of my webapp). Eventually, I run into out of
>memory problems. Shouldn't a reload of a webapp cause a relase of the
>resources from the old webapp?

A reload should release old resources when you restart the webapp, yes.
But it's your responsibility to ensure there's nothing in your
application which would stay in memory after a webapp restart.  For
example, classes in common/lib aren't affected by a restart, so if you
app puts stuff there, and then you restart your app, the stuff you put
in common/lib will still be there.

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]


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

Reply via email to