-->
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.  [ 4 posts ] 
Author Message
 Post subject: Connection Pool
PostPosted: Fri Aug 21, 2009 7:48 am 
Newbie

Joined: Wed Aug 19, 2009 10:55 am
Posts: 6
How does a connection pool become corrupted? And is there a way to tell? If it is corrupt would be better to create a connection pool? I am using c3p0.


Top
 Profile  
 
 Post subject: Re: Connection Pool
PostPosted: Fri Aug 21, 2009 2:19 pm 
Newbie

Joined: Tue Feb 24, 2009 8:39 pm
Posts: 19
what do you mean with "corrupted"?


Top
 Profile  
 
 Post subject: Re: Connection Pool
PostPosted: Sat Aug 22, 2009 3:26 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
When there's a problem, it will usually show up in the logs. Maybe you're out of cursors? Maybe your proxies have timed out the connection through the firewall, but the server is still trying to use those same ports? Maybe it's just bad code in your apps that is making it look like a connection pool problem. Dig deeper, and post with more details. That might give us some focus.

-Cameron McKenzie

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
 Post subject: Re: Connection Pool
PostPosted: Mon Aug 24, 2009 10:10 am 
Newbie

Joined: Wed Aug 19, 2009 10:55 am
Posts: 6
I'm having an issue with a client's site. About 12:00 am their database does a backup and all the hibernate connections time out. The next morning when the client tries to connect the database, the application crashes because their are no connections left and the pool never tries to make new connections. I am thinking the pool is getting corrupt, because the connections are timing out.

Here is some of logging from the server

2009-Aug-17 07:16:01:371 ManagerImpl.logErrorEx():233 ERROR - Cannot get a connection, pool exhausted

2009-Aug-18 08:08:39:828 com.mchange.v2.c3p0.stmt.GooGooStatementCache.checkinAll():297 DEBUG - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
2009-Aug-18 08:08:39:828 com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.acquireResource():217 DEBUG - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@108e246.acquireResource() returning.
2009-Aug-18 08:08:39:828 com.mchange.v2.resourcepool.BasicResourcePool.trace():1644 DEBUG - trace com.mchange.v2.resourcepool.BasicResourcePool@108e25d [managed: 10, unused: 10, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@fb438e)


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

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.