The huge webapp in my Tomcat sometimes starts using too many DBCP connections, which leads to problems.
To explore, I want to know at every moment in time that the thread / method supports pooling. No need to be in real time, post-mortem analysis is in order.
I searched for such a DBCP monitoring tool, in vain, so I'm going to write my own. (if there is any interest, I can make it open source)
Here is my plan:

QUESTION:
Is any Commons-DBCP 1.4 concept missing that makes the idea invalid?
Or am I reinventing the wheel?
source share