Skip to content
New issue

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

druid 连接长时间没有访问后出现CommunicationsException,相关检查参数失效 #1

Open
shuiZzz opened this issue Aug 30, 2019 · 1 comment

Comments

@shuiZzz
Copy link

shuiZzz commented Aug 30, 2019

系统访问不活跃,mysql服务连接会回收。但是有设置druid取链接之前检查,检查参数看着设置进去了,就是不起作用。mysql的wait_timeout 8h,druid-spring-boot-starter版本是1.1.18

druid参数:
.min-idle=5
.max-active=50
.validation-query=SELECT 1
.min-evictable-idle-time-millis=500000
.time-between-eviction-runs-millis=20000
.test-while-idle=true
.test-on-borrow=false
.test-on-return=false

@minguotan
Copy link

3年了,这个问题还没回答啊……楼主是怎么解决的呢后来?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants