Hi all,
Hibernate 3.2
MySQL
c3p0 0.9.1.1
Even though I set maximum c3p0 pool size to 5 in hibernate.xml, the MySQL's SHOW PROCESSES command gives about 20(!) sleeping connections.
Here is c3p0 config part:
Code:
<property name="c3p0.acquire_increment">1</property>
<property name="c3p0.idle_test_period">300</property> <!-- seconds -->
<property name="c3p0.timeout">10</property> <!-- seconds -->
<property name="c3p0.min_size">2</property>
<property name="c3p0.max_size">5</property>
<property name="c3p0.max_statements">0</property>
Can anyone suggest what I missed in configuration?
Any clues are much appreciated.