Hi,
I have migrated from Openkm 5.0.4 to OpenKm 5.1.8. I use mysql as database. All features and the repository are ok and fully running, but about after 1 day that application is running, I obtain the follow error:
Consider that autoReconnect=true is setted in openkm-ds.xml as you can see:
and in repositoy.xml
So each day I must restart the server to work. What can I do to solve this problem?
Thanks in advance.
Andrea
I have migrated from Openkm 5.0.4 to OpenKm 5.1.8. I use mysql as database. All features and the repository are ok and fully running, but about after 1 day that application is running, I obtain the follow error:
Code: Select all
2012-02-28 00:00:55,891 INFO [org.apache.jackrabbit.core.persistence.bundle.util.LRUNodeIdCache] num=764/10240 hits=9578 miss=70422
2012-02-28 12:03:03,016 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: 08S01
2012-02-28 12:03:03,016 ERROR [org.hibernate.util.JDBCExceptionReporter] The last packet successfully received from the server was 71.415.344 milliseconds ago. The last packet sent successfully to the server was 71.415.344 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
Consider that autoReconnect=true is setted in openkm-ds.xml as you can see:
Code: Select all
<jndi-name>OpenKMDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/okm_app518?autoReconnect=true</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>openkm</user-name>
<password>xxxxxx</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>28680</idle-timeout-minutes>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
and in repositoy.xml
Code: Select all
<PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
<param name="driver" value="com.mysql.jdbc.Driver"/>
<param name="url" value="jdbc:mysql://localhost:3306/okm_repo518?autoReconnect=true"/>
<param name="schema" value="mysql"/>
<param name="user" value="openkm"/>
<param name="password" value="xxxxxxx"/>
<param name="schemaObjectPrefix" value="version_"/>
<param name="externalBLOBs" value="false"/>
</PersistenceManager>
So each day I must restart the server to work. What can I do to solve this problem?
Thanks in advance.
Andrea