Monitoring for DBCP database?

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:

DBCP monitoring

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

+6
source share
1 answer

There was no such tool, so I created it:

https://github.com/nicolas-raoul/Commons-DBCP-monitoring

It controls the use of the Commons database (using / waiting for a connection) and allows you to create such charts:

enter image description here

enter image description here

I asked if my assumptions on the Commons DBCP mailing list are valid.

+8
source

Source: https://habr.com/ru/post/921369/


All Articles