posted 10 years ago
It's quite likely that your connection pool has a method which returns statistics like that. But check its documentation to make certain. Of course you would need a link to the connection pool instance which is actually doing the pooling -- if your code is starting the pool, then just hang onto a reference to the pool for later use.