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: Hibernate-c3p0 - sleeping connections are not being used.
PostPosted: Fri Sep 16, 2011 12:03 pm 
Newbie

Joined: Sat Jun 18, 2011 10:25 am
Posts: 3
I have J2EE5 , web-app 2.5 , Spring - Hibernate - MysQL application , having c3p0 as Database connection pool manager.

Problem :- I have found many connections in sleeping mode , (monitoring through MySQL administrator tool) at DB side during peak load of appliaction usage , which must be utilized when a request comes asking for DB connection. But at front side , application response goes very slow if it requires a DB connection (activity).

As per my understanding , if there are sleeping connections a DB side , then those should be used to serve for DB connection and activity. But on the contrary the application response goes slow .

below listed are c3p0.properties
minPoolSize=1
maxPoolSize=80
maxStatements=100
maxIdleTime=7200
acquireIncrement=5
batchSize=100
idleConnectionTestPeriod=1800
preferredTestQuery=SELECT 1
unreturnedConnectionTimeout=2100
debugUnreturnedConnectionStackTraces=true
numHelperThreads=10

Request you to suggest or guide if any change at configuration side is required.
My estimated user flow is around - 900


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.