2
Guys, I have a problem in my system, it is falling too much the connection as database, this system gets to 12 hours idle, I need a help to configure C3P
<!--Configuração do pool de c3p0 -->
<property name="c3p0.acquire_increment" value="10" />
<property name="hibernate.c3p0.min_size" value="20" />
<property name="hibernate.c3p0.max_size" value="50" />
<property name="hibernate.c3p0.timeout" value="144000"/>
<property name="hibernate.c3p0.max_statements" value="50" />
<property name="c3p0.idle_test_period" value="3000" />
Check your Mysql for the variable
wait_timeout
. Maybe she’s got less time than you set up on C3P0idle_test_period
– NilsonUehara