Sorry, you are right, it is in org.apache.tomcat.util.modeler.BaseModelMBean, and resource attribute it is retaining is an org.apache.commons.dbcp.BasicDataSource

   Diego

Caldarale, Charles R escribió:
From: Diego Rodríguez Martín [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 classloader leak in Commons Pool

I have found that the offending class causing the leak is org.apache.tomcat.util.modeler.ManagedBean. It keeps two
attributes referencing my dbcp pool, called resource and
resourceType.

Are you sure about that class name?  It looks like the fields you've mentioned 
are actually in:
    org.apache.tomcat.util.modeler.BaseModelMBean

The resourceType field is a String, so that isn't actually a reference to your 
DBCP pool, but resource is just an Object, so that's probably the real culprit. 
 There does not appear to be any way to clear the resource field in a 
BaseModelMBean, and I don't yet know where references to the BaseModelMBean are 
maintained.

What exactly does the resource field reference?  A connection, the DBCP 
factory, or ???

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
-------------------------------------------------------------
Diego Rodríguez Martín ([EMAIL PROTECTED])
ALTIRIA TIC - Servicios SMS - Desarrollo Web
Tel. +34 913311198 - Fax +34 913310087 - Móvil +34 610299750
www.altiria.com
-------------------------------------------------------------

Reply via email to