com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Software caused connection abort: recv failed [duplicate]

Your mySQL connections are timing out before your connection pool recognizes them. There are multiple ways to fix this:

  1. Increase the timeout value in mysql config file (my.ini)
  2. Reduce the idle time in your connection pool, so that it will discard the connection before mysql will close it
  3. Add a validate connection query in your pool config so that the pool tests each connection before it gives it to you, but this can slow down the system terribly.

Leave a Comment