I am working on a web project in which i have used c3p0 in web services.I have configured the following pararamters in hibernate.cfg.xml file.But even though i have given max_size is 10000 and idle test period is 30 ,Sometimes mysql server is not providing another connection to db.So the website is getting load and load till i restart my server.And my in log shows "too many conection are opened".What i miss in the following configuration.Please help me out
<property name="hibernate.c3p0.min_size">10</property>
<property name="hibernate.c3p0.max_size">10000</property>
<property name="hibernate.c3p0.max_statements">5000</property>
<property name="hibernate.c3p0.maxIdleTime">1000</property>
<property name="hibernate.c3p0.maxIdleTimeExcessConnections">500</property>
<property name="hibernate.c3p0.acquire_increment">100</property>
<property name="hibernate.c3p0.idle_test_period">30</property>
<property name="hibernate.c3p0.validate">true</property>
<property name="hibernate.c3p0.preferredTestQuery">SELECT 1</property>
<property name="hibernate.c3p0.testConnectionOnCheckin">true</property>
<property name="hibernate.c3p0.testConnectionOnCheckout">false</property>