minEvictableIdleTimeMillis的配置,最终链接不释放
Open
Question
- Dominant language
- Java
- Stars
- 28.2k
- Forks
- 8.6k
- PR merge metrics
- No merged PRs in 30d
Description
当前版本:1.0.15,hibernate3
``
``
``
` `
``
``
` `
` `
``
上面是我的配置,问题是这样的:我的程序在做一个30万的数据查询,活跃连接数一直在上涨,中间不释放链接,到峰值170左右,重点问题就是在程序跑完以后,池中链接一直都是峰值状态,除非重启服务才能解决。后来我在测试过程中,将这个参数minEvictableIdleTimeMillis调小到1分钟以内就不会有上述问题,不太理解这个最终不释放是什么原因,代码没变,就是修改minEvictableIdleTimeMillis这个参数。
Contributor guide
Research direction
Start by reproducing the 300,000-row query with the reported Druid 1.0.15 and hibernate3 settings, comparing minEvictableIdleTimeMillis values. Then trace the connection-pool handling of timeBetweenEvictionRunsMillis, minIdle, and eviction timing; done means identifying why idle connections remain at peak and documenting or verifying the release behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100