I get these exceptions for several weeks without a solution ...
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 179,695,604 milliseconds ago.
The last packet successfully sent to the server was 179,695,604 milliseconds ago. greater than the wait_timeout value set by the server. You should consider expiration and / or verify the connection before using it in your application, increasing the server-configured values ββfor client timeouts or using the Connector / J connection property "autoReconnect = true" to avoid this problem.
So, I changed my Context.xml application to set the autoReconnect=true tag with my databases for the connection pool in Tomcat 7. I even set wait_timeout to infinity in the context file.
What am I missing? Is this a common problem? There seems to be a small amount of information on the net, but following these guidelines the same thing happens the day after a period of inactivity.
The more I use the server, the less this happens. I think this is pool pool wait_timeout , but how can I stop them if wait_timeout does not work? Any ideas on how to diagnose the problem or configuration files?
source share