KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Occasionally, my Java/Tomcat6/Debian Squeeze application can't talk to the MySql server. The Tomcat application is on a front-end server and MySql is on a separate, MySql-only box. A typical error is: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was56588 milliseconds ago. The last packet sent successfully to the server was 56588 milliseconds ago, which 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. The timeout time given is only 60 seconds, which seems very short. If it was an hour or more, I would simply setup a background task to ping the DB-server every few minutes. I've added the autoReconnect parameter to the opening URL, with no obvious impact. Any idea as to what the problem is here? Thanks Pat
Tags (comma-separated)
Save Edits
Cancel