Tomcat JDBC Conencton Pool + MySQL gives “Broken pipe” problems, even with connection validation

前端 未结 2 974
孤城傲影
孤城傲影 2021-01-03 03:19

I\'m fighting with configuring Tomcat JDBC Connection Pool to achieve reliability. Current issue is that in test environment I have such scanerio in webapp:

  • da
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-03 04:10

    You need to set 'testOnBorrow' to 'true', and probably 'maxAge' to less than the server's configured 'wait_timeout', as hinted in the message.

提交回复
热议问题