tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: WebappClassLoader weak/soft reachable
Date Tue, 06 Nov 2012 22:14:48 GMT
2012/11/7 Christopher Schultz <>:
>> I do not know about the dbcp one. It might be an issue. It
>> certainly will contain a stack trace (it is what it is used for).
>> I usually run with logAbandoned being turned off. Do you have
>> opened connections in your pool? Do you have closeMethod="close" on
>> your pool definition?
> Here's my <Resource>:
>    <Resource name="..."
>     description="..."
>         auth="Container"
>         type="javax.sql.DataSource"
>         maxActive="1"
>         maxIdle="1"
>         maxWait="10000"
>         url="..."
>         username="..."
>         password="..."
>         driverClassName="com.mysql.jdbc.Driver"
>         removeAbandoned="true"
>         removeAbandonedTimeout="30"
>         logAbandoned="true"
>     testOnBorrow="true"
>     validationQuery="/* ping */ SELECT 1"
>     />
> So, I have no closeMethod defined for my <Resource>, so I suspect that
> I get the default. I couldn't find any documentation on DBCP
> closeMethod :(

It is an attribute used by Tomcat itself, not DBCP:

(FIXME: should be mentioned here as well, as well as the "singleton" attribute:

> I'm happy to provide a memory snapshot or even a screenshot ...

You are on your own with this. I would not have much time to dig into
this further. Maybe others can help.   I think those chains of weak
references are not an issue.

Maybe you could remove parts of your configuration, of your webapp,
until you have some minimal configuration that still reproduces the

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message