tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54217] JDBC connection pool runs out of connections when Context reload=“true” is enabled in Tomcat
Date Thu, 29 Nov 2012 15:34:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54217

--- Comment #2 from Levan <informatik0101@gmail.com> ---
(In reply to comment #1)
> You are not closing your connection pool properly. You need to specify
> closeMethod="close". Without that the pool would not know when to close
> those 10 "minIdle" connections.
> 
> The attribute is documented here:
> http://tomcat.apache.org/tomcat-7.0-doc/config/context.
> html#Resource_Definitions
> 
> 
> This is going to be close as INVALID. Just holding it open for a while as a
> chance to improve documentation: it would be better to add closeMethod to
> the examples in jndi-datasource-examples-howto.html

Thank you so much for your help!
I added the attribute closeMethod="close" to the Resource element in my 
/META-INFO/context.xml and it works!

I asked about how to handle this issue on stackoverflow.com and nobody seems to
know. So I'll post the answer to my question myself referencing this page and
your help.

Спасибо!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message