These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: c3p0 connections not released on DB connection failures!!!
PostPosted: Wed Dec 21, 2011 9:10 am 
Newbie

Joined: Wed Dec 21, 2011 7:03 am
Posts: 1
Hi,

I'm using Hibernate 3 with c3p0 pooling connections.
My servlet uses a Thread local sessions for each request meaning
Only one session object is used throughout a request.
It was observed that database server was down for few milliseconds during which we got :
[2011-12-16 05:30:10,573]ERROR511458[http-80-1](JDBCExceptionReporter.java:78) - Communications link failure

The last packet successfully received from the server was 688,564 milliseconds ago. The last packet sent successfully to the server was 59 milliseconds ago.
This exception was seen only on 1 thread i.e http-80-1.
Later on all the requests that were serviced by that thread gave
You can't operate on a closed Connection!!!
we had to re-start Tomcat to rejuvenate that thread.
Can someone explain this behavior..??


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.