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

为君一笑 提交于 2019-11-26 19:10:26
srini.venigalla

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.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!