Jboss下查看数据库连接泄露的方法

发现连接池泄露后,使用JMX-Console,搜索服务CacheConnectionManager,调用

listInUseConnections

这样我们就可以得到当前使用的连接池的线程堆栈,很容易就可以知道哪个地方存在数据库连接泄露了。


作者: Cherami
原载: Jboss下查看数据库连接泄露的方法
版权所有。转载时必须以链接形式注明作者和原始出处及本声明。

日志评价

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (暂无评价) --点击星星直接投票
Loading ... Loading ...


相关日志



随机日志



添加到网摘

[del.icio.us]  [新浪 VIVI]  [365key]  [YouNote]  [博采中心]  [Poco]  [SOHU狐摘]  [天极网摘]  [和讯网摘]
喜欢这个插件?

当前日志信息