-->
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 min_size double connection
PostPosted: Thu Oct 30, 2008 10:43 am 
Newbie

Joined: Thu Oct 30, 2008 10:20 am
Posts: 1
I'm using a c3p0 connection pool in hibernate and I attach the property that I configured in hibernate.cfg.xml:



<property name="hibernate.c3p0.acquire_increment">1</property> <property name="hibernate.c3p0.idle_test_period">12</property>
<property name="hibernate.c3p0.max_statements">0</property>
<property name="hibernate.c3p0.max_size">10</property>
<property name="hibernate.c3p0.min_size">2</property>
<property name="hibernate.c3p0.timeout">60</property>


I aspect that when start my web application I see in My SQL connection manager only 2 connection if the application is not called from anyone.
I aspect that the maximum connection that the pool will use is 60 and that when a the application use a connection, it dies after 60 second if another user asks to use it.

Indeed, I see in my connection manager that when the application starts, the connection from the ip of the server where the application is deployed are the double of the hibernate.c3p0.min_size parameter value, exactly 4 and that these connection die after 12 seconds (hibernate.c3p0.idle_test_period value) and are created newly.

Why the c3p0 connection pool not work with the parameters I configured?
There are the c3p0 parameters that I don't know?
And at this point, what is the mean of the basic paremeters for the C3p0 and how can I set them ?

Than You to anyone have same inofrmation about this topic





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.