-->
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.  [ 2 posts ] 
Author Message
 Post subject: c3p0 not able to limit connections from mysql
PostPosted: Thu Aug 12, 2010 8:41 am 
Newbie

Joined: Thu Aug 12, 2010 8:27 am
Posts: 2
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
Rishi


Top
 Profile  
 
 Post subject: Re: c3p0 not able to limit connections from mysql
PostPosted: Thu Aug 12, 2010 10:58 am 
Newbie

Joined: Thu Aug 12, 2010 8:27 am
Posts: 2
Any Help is greatly appreciated....

its urgent guys..Thanks Again


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.