I was trying to identify a JDBC leaking in our application. I obtained a heap dump which it showed me the in use count from
SELECT p.pool.poolName.toString() AS poolName
, p.checkedOutSize.value AS inUse
, p.cls.baseCount AS active
, p.poolConfiguration.maxSize.value.toString() AS maxSize
, p.poolConfiguration.minSize.value.toString() AS minSize
, p.poolConfiguration.strictMin.value.toString() AS useStrictMin
, p.poolConfiguration.prefill.value.toString() AS prefill
FROM org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool p
But how can I find the stack trace of the application class that was holding up the connection?