-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
连接无法获取 #2404
Comments
atomikos遇到同样问题 |
java.sql.SQLException: connection holder is null |
@zj4775 如果你们用的atomikos的话。。初步判断原因是atomikos的ConnectionPool自己维护了一个连接池,每次borrowConnection的时候,它从自己的连接池里面取,所以有可能druid在shrink之后把某个连接回收了,atomikos这边仍然持有这个连接,导致了connection holder is null。。 |
遇到了同样的问题: 添加了keepAlive=true也不起作用,最后升级了mysql-connector-java版本,问题得解。 |
你用atomikos 没有8小时超时的问题 ?能否看下你的数据源配置? |
我没有使用 atomikos,目前项目没有正式启用,暂时还没发现8小时问题。 |
@hitynsun 不用了 我在使用过程中,atomikos +druid 是不行的,应该是无法配合使用的,超8小时 jdbc链接就无法使用了 现在也不用druid 了 |
有解决方案吗? Caused by: java.sql.SQLException: connection disabled |
出现同样问题,请问各位都怎么解决的? |
请问有解决方案吗 |
|
温少你好,我们最近使用druid出现了connection holder is null 的异常,参考前面的 文章你说需要将druid提升到1.1.5,我们已经将druid的版本提升到了1.1.8版本了,但是程序跑了几天还是会出现这个错误。
druid的配置信息是
filters=stat,config
maxActive=20
initialSize=1
maxWait=60000
minIdle=1
maxIdle=10
timeBetweenEvictionRunsMillis=60000
minEvictableIdleTimeMillis=300000
validationQuery=SELECT 'x'
testWhileIdle=true
testOnBorrow=false
testOnReturn=false
maxOpenPreparedStatements=20
removeAbandoned=false
removeAbandonedTimeout=1800
具体版本是
druid:1.1.8
mysql-connector-java:5.1.34
mysql:5.6.16
我们使用的是分布式事务会出现这个问题
The text was updated successfully, but these errors were encountered: