You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Shanti Suresh <sh...@umich.edu> on 2012/02/17 22:59:04 UTC
DBCP Connections build up on one server
All,
The Mbean for a JDBC datasource that uses the commons-dbcp-1.2.1.jar library builds up on one server. The other server is okay. They run the same code.
We are using Tomcat-7.0.23.
They are both RedHat Linux servers
What could be causing this anomaly?
-Shanti
--
Shanti Suresh
App Systems Analyst Lead
Web Services, LSA Development
University of Michigan
Office: 734-763-4807
shanti@umich.edu
http://lsa.umich.edu/cms
Re: DBCP Connections build up on one server
Posted by Pid * <pi...@pidster.com>.
On 17 Feb 2012, at 22:02, Shanti Suresh <sh...@umich.edu> wrote:
> The threaddump look the same across both servers. The heapdump shows increasing heap on the suspect server in the Finalizer class. The Finalizer class is holding references to another class which is a wrapper class for ConectionPool objects.
You are probably leaking connections. Check that your code is properly
returning DB objects after use.
You might also consider using the built in connection pools, or at
least a newer version than 1.2.1.
p
>
> Thanks for all tips/suggestions!
>
>
> -Shanti
>
> On Feb 17, 2012, at 4:59 PM, Shanti Suresh wrote:
>
>> All,
>>
>> The Mbean for a JDBC datasource that uses the commons-dbcp-1.2.1.jar library builds up on one server. The other server is okay. They run the same code.
>>
>> We are using Tomcat-7.0.23.
>> They are both RedHat Linux servers
>>
>> What could be causing this anomaly?
>>
>> -Shanti
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: DBCP Connections build up on one server
Posted by Shanti Suresh <sh...@umich.edu>.
The threaddump look the same across both servers. The heapdump shows increasing heap on the suspect server in the Finalizer class. The Finalizer class is holding references to another class which is a wrapper class for ConectionPool objects.
Thanks for all tips/suggestions!
-Shanti
On Feb 17, 2012, at 4:59 PM, Shanti Suresh wrote:
> All,
>
> The Mbean for a JDBC datasource that uses the commons-dbcp-1.2.1.jar library builds up on one server. The other server is okay. They run the same code.
>
> We are using Tomcat-7.0.23.
> They are both RedHat Linux servers
>
> What could be causing this anomaly?
>
> -Shanti
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org