Note that there are some explanatory texts on larger screens.

plurals
  1. POHibernate and mysql timeout issue
    primarykey
    data
    text
    <p>I have been having trouble with Hibernate and Mysql timeout error.I am also using properties of c3p0(connection provider). After my Hibernate/MySQL have been running after 8 hours(which is default timeout value in Mysql), I have the exception. But it doesn't help.</p> <p>property for auto reconnect also not working.</p> <p>Here is my Hibernate Configuration:</p> <pre><code>&lt;property name="connection_provider_class"&gt;org.hibernate.connection.C3P0ConnectionProvider&lt;/property&gt; **&lt;property name="connection.autoReconnect"&gt; true&lt;/property&gt; &lt;property name="connection.autoReconnectForPools"&gt;true&lt;/property&gt;** &lt;property name="connection.is-connection-validation-required"&gt;true&lt;/property&gt; &lt;property name="c3p0.validate"&gt;true&lt;/property&gt; &lt;property name="current_session_context_class"&gt;thread&lt;/property&gt; &lt;property name="cache.use_query_cache"&gt;false&lt;/property&gt; &lt;property name="cache.use_second_level_cache"&gt;false&lt;/property&gt; &lt;property name="c3p0.idle_test_period"&gt;20&lt;/property&gt; &lt;property name="c3p0.timeout"&gt;40&lt;/property&gt; &lt;property name="c3p0.max_size"&gt;100&lt;/property&gt; &lt;property name="c3p0.min_size"&gt;1&lt;/property&gt; &lt;property name="c3p0.acquireRetryAttempts"&gt;10&lt;/property&gt; &lt;property name="c3p0.maxPoolSize"&gt;100&lt;/property&gt; &lt;property name="c3p0.maxIdleTime"&gt;300&lt;/property&gt; &lt;property name="c3p0.maxStatements"&gt;50&lt;/property&gt; &lt;property name="c3p0.minPoolSize"&gt;10&lt;/property&gt; &lt;property name="c3p0.preferredTestQuery"&gt;select 1;&lt;/property&gt; &lt;property name="connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt; &lt;property name="connection.url"&gt;jdbc:mysql://localhost:3306/doqeap&lt;/property&gt; &lt;property name="connection.user"&gt;root&lt;/property&gt; &lt;property name="connection.password"&gt;*******&lt;/property&gt; &lt;property name="dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt; &lt;property name="hibernate.jdbc.batch_size"&gt;0&lt;/property&gt; &lt;mapping&gt;&lt;/mapping&gt; </code></pre> <p>please help me to sort out this problem. Thanks </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload