Druid连接池泄露

tonywen710 发布于 2014/12/01 16:32
阅读 3K+
收藏 0

@wenshao 你好,想跟你请教个问题:

环境配置:spring+mybatis+atomikos+Druid下的DruidXADataSource

<bean id="abstractDataSource" class="com.alibaba.druid.pool.xa.DruidXADataSource"
destroy-method="close">
<property name="driverClassName" value="${jdbc.driverClass}" />
<property name="username" value="${jdbc.username}" />
<property name="password" value="${jdbc.password}" />
<property name="maxActive" value="${jdbc.maxPoolSize}" />
<property name="initialSize" value="${jdbc.minPoolSize}" />
<property name="minIdle" value="10" />
<property name="maxWait" value="60000" />
<property name="timeBetweenEvictionRunsMillis" value="60000" />
<property name="minEvictableIdleTimeMillis" value="300000" />
<property name="testWhileIdle" value="true" />
<property name="validationQuery" value="${jdbc.validation}" />
<property name="testOnBorrow" value="false" />
<property name="testOnReturn" value="false" />
<property name="maxOpenPreparedStatements" value="200" />
<property name="removeAbandoned" value="true" />
<property name="removeAbandonedTimeout" value="1800" />
<property name="LogAbandoned" value="true" />
</bean>


错误信息:

20141201 14:19:26 ERROR [com.alibaba.druid.pool.DruidDataSource] - 
[LOG:] abandon connection, open stackTrace
at java.lang.Thread.getStackTrace(Thread.java:1436)
at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:995)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:921)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:911)
at com.alibaba.druid.pool.xa.DruidXADataSource.getXAConnection(DruidXADataSource.java:44)
at com.atomikos.jdbc.AtomikosXAConnectionFactory.createPooledConnection(AtomikosXAConnectionFactory.java:60)
at com.atomikos.datasource.pool.ConnectionPool.init(ConnectionPool.java:72)


加载中
0
wenshao
wenshao
com.atomikos.datasource.pool.ConnectionPool.init没关连接吧
返回顶部
顶部