前提:抓到了hrof堆栈,使用内存分析工具如mat分析
mysql下查看连接数的QOL:
SELECT toString(t.myURL) FROM com.mysql.jdbc.JDBC4Connection t
oracle:
select * from oracle.jdbc.driver.PhysicalConnection
sqlserver:
select * from com.microsoft.sqlserver.jdbc.SQLServerConnection