-->
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 hibernate, not able to limit no of connections
PostPosted: Mon Aug 16, 2010 7:00 am 
Newbie

Joined: Mon Aug 16, 2010 1:20 am
Posts: 1
Hi,
i am using Hibernate 3.1 with struts 2.0 and mysql as DB. My c3p0 connection setting are as follows..

<property name="hibernate.c3p0.min_size">3</property>
<property name="hibernate.c3p0.max_size">5</property>
<property name="hibernate.c3p0.timeout">20</property>
<property name="hibernate.c3p0.preferredTestQuery=SELECT 1"></property>
<property name="hibernate.c3p0.testConnectionOnCheckout=true "></property>

<property name="hibernate.connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
<property name="hibernate.c3p0.idle_test_period">20</property>

But still when I start my application and do showprocesslist it shows 6 connection in sleep more over as I roam into the application with other requests they keep on increasing and doesnt get kill..

and eventually after some time it stops with exception showing no resource in pool.

Please help its urgent as my application is in testing and release date is near..


Thanks
Nimit


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.