报错: com.alibaba.druid.pool.DruidDataSource : abandon connection, owner thread

简介: 报错: com.alibaba.druid.pool.DruidDataSource : abandon connection, owner thread

出现这个错误,不慌。

 

这是druid强制关闭连接,打印出来的。


那么为什么会强制关闭连接, 因为这2个参数:


image.png

如果你出现这个错误,影响到了你的业务,数据,那么你可以考虑把这个超时时间适当延长;


如果你出现这个错误,没有影响到你的业务,那么你大可不必管它,因为这个回收也是为了避免你不小心忘记关闭的连接泄露了。


当然也有直接不设置true的,就是不会出现自动强制回收,这个具体得看情况而定了,我建议还是设置好些。

相关文章
|
22天前
|
架构师 Java 数据库连接
成功解决:com.alibaba.druid.support.logging.JakartaCommonsLoggingImpl.
这篇文章提供了解决Spring整合MyBatis时报错的配置方法,包括使用Spring的上下文属性占位符加载数据库配置文件`db.properties`,并在Spring配置文件中声明并配置数据源`DruidDataSource`。
|
4月前
|
Java 数据库连接 mybatis
解决Error querying database. Cause: org.apache.ibatis.executor.ExecutorException: No constructor found
解决Error querying database. Cause: org.apache.ibatis.executor.ExecutorException: No constructor found
226 1
|
3月前
【ERROR】No qualifying bean of type ‘com.alibaba.druid.pool.DruidDataSource‘ available
【ERROR】No qualifying bean of type ‘com.alibaba.druid.pool.DruidDataSource‘ available
27 0
|
10月前
|
SQL
报错org.springframework.jdbc.UncategorizedSQLException: Error attempting to get column ‘xxx‘ from resu
报错org.springframework.jdbc.UncategorizedSQLException: Error attempting to get column ‘xxx‘ from resu
292 0
报错org.springframework.jdbc.UncategorizedSQLException: Error attempting to get column ‘xxx‘ from resu
|
10月前
|
Apache
Apache comoon-pool 使用总结
Apache comoon-pool 使用总结
43 0
|
关系型数据库 MySQL
ERROR com.alibaba.druid.pool.DruidDataSource - create connection SQLException, url
ERROR com.alibaba.druid.pool.DruidDataSource - create connection SQLException, url
2984 0
ERROR com.alibaba.druid.pool.DruidDataSource - create connection SQLException, url
|
druid
java.lang.IllegalStateException: Error processing condition on com.alibaba.druid.spring.boot.autocon
java.lang.IllegalStateException: Error processing condition on com.alibaba.druid.spring.boot.autocon
342 0
|
SQL 消息中间件 资源调度
Could not find a suitable table factory for ‘org.apache.flink.table.factories.TableSourceFactory
这是在提交yarn时报的错误,原因其实就是少了一些包,提交的集群后一些依赖包使用flink的lib目录下的,所以我需要将一些依赖包放到lib目录下。
403 0
Could not find a suitable table factory for ‘org.apache.flink.table.factories.TableSourceFactory
|
Java 关系型数据库 MySQL
HikariPool-1 - Exception during pool initialization. Springboot 默认选择的mysql
HikariPool-1 - Exception during pool initialization. Springboot 默认选择的mysql
1447 1
|
关系型数据库 MySQL Java
Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionExcep linux下mysql修改连接超时wait_timeout修改后就ok了
Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionExcep linux下mysql修改连接超时wait_timeout修改后就ok了
166 1