Help with broken pipe

2

I have a problem with my system, it is dropping too much connection as a database, this system is up to 12h idle, I need 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"   />

    
asked by anonymous 17.10.2016 / 20:10

1 answer

0

I had a similar problem when I went to test my TC, the solution I found was to apply the following attributes in Persistence.xml. If you have not solved it yet, try these parameters in the hibernate xml.

 <property name="connection.autoReconnect" value="true"/>
 <property name="connection.autoReconnectForPools" value="true"/>
    
18.10.2016 / 19:19