We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validationQuery
testWhileIdle=true
从语意上来讲, testWhileIdle=true 配置后,Druid应该会隔一段时去使用一下 Connection, 保持Connection的连通性。 但是结果看到结果并不是这样。
另外看了一下源代码, Druid并没有定时去保持Connection的连通性,只是在 getConnectionDirect()的时候,顺便测试了一下。请问这么设计的初衷和原因是什么?
=====分割线 app部署在tomcat, 启动tomcat 启动后, 30分钟不去访问 app的url 30分钟之后去访问 app, Connection也报 上面的 mysql wait_timeout错误。
The text was updated successfully, but these errors were encountered:
两者效果应该是一样的啊
Sorry, something went wrong.
#939
No branches or pull requests
问题
validationQuery
,testWhileIdle=true
从语意上来讲, testWhileIdle=true 配置后,Druid应该会隔一段时去使用一下 Connection, 保持Connection的连通性。 但是结果看到结果并不是这样。
另外看了一下源代码, Druid并没有定时去保持Connection的连通性,只是在 getConnectionDirect()的时候,顺便测试了一下。请问这么设计的初衷和原因是什么?
=====分割线
app部署在tomcat, 启动tomcat
启动后, 30分钟不去访问 app的url
30分钟之后去访问 app, Connection也报 上面的 mysql wait_timeout错误。
The text was updated successfully, but these errors were encountered: