> From: xu cheng [mailto:xcheng....@gmail.com] 
> Subject: Re: OutOfMemoryError some time on some tomcat!!!!1

> > hanging onto a reference to an object from your webapp classes,
> > preventing the old webapp deployment from being garbage collected.

> what kind of object do you mean by saying this?

Something is keeping a reference to an object (or class) defined in your 
webapp, or to the classloader for your webapp.  Likely candidates include 
thread locals, loggers, and auxiliary threads started (but not stopped) by the 
webapp.  Until the offending reference is nulled out, the object can't be 
collected, so its classloader can't be collected, so the old webapp stays in 
memory.

Any heap profiler should be able to find the references to your webapp classes, 
although the process may well be tedious.

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


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

Reply via email to