tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: What do I do with a heap dump? (OOM Permgen)
Date Fri, 02 Nov 2007 12:24:48 GMT
> From: Peter Crowther [mailto:Peter.Crowther@melandra.com] 
> Subject: RE: What do I do with a heap dump? (OOM Permgen)
> 
> As far as I know, public enemy #1 for eating PermGen space is 
> still developers using the Singleton pattern in their code 
> and not having listeners to null out the singleton instance 
> when the webapp is undeployed.

Analagous use of ThreadLocal is also a subtle contributor to the
problem.  The offending references must be cleared at the end of
processing of each request, since listeners don't have ready access to
the thread pool.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message