Help with Broken pipe

Asked

Viewed 41 times

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"   />

inserir a descrição da imagem aqui

  • Check your Mysql for the variable wait_timeout. Maybe she’s got less time than you set up on C3P0 idle_test_period

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 haven’t solved it yet, try these parameters in the xml of Hibernate.

 <property name="connection.autoReconnect" value="true"/>
 <property name="connection.autoReconnectForPools" value="true"/>
  • Opa brother ... man, I still could not, I talked to the Integrator staff and it did not work .. I will test your suggestion dear .. thank you very much ...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.