Connection Pool Exception: Cannot get a connection, pool error Timeout waiting for idle object

試著忘記壹切 提交于 2019-11-28 07:47:04

Change out the relevant parts to:

minEvictableIdleTimeMillis=1800000
timeBetweenEvictionRunsMillis=1800000
numTestsPerEvictionRun=3
testOnBorrow=true
testWhileIdle=true
testOnReturn=true
validationQuery="SELECT 1"

This should probably solve this issue.

I had bad code that was keeping connections alive way longer than they should be. Once I fixed the underlying problem this went away.

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