Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8343837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:11:10+00:00 2026-06-09T06:11:10+00:00

A huge webapp in my Tomcat sometimes starts using too many DBCP connections, leading

  • 0

A huge webapp in my Tomcat sometimes starts using too many DBCP connections, leading to problems.
To investigate, I want to know precisely at each point in time what thread/method is holding a connection of the pool. Does not need to be real-time, post-mortem analysis is OK.

I have been looking for such a DBCP monitoring tool, in vain, so I am about to write mine.
(if there is any interest I can make it open source)

Here is my plan:

  • Modify PoolingDataSource.getConnection to log “DBCP+1 <thread-id>“
  • Modify DelegatingConnection.close to log “DBCP-1 <thread-id>“
  • Write a small script to generate this simple CSV for visualization:

DBCP monitoring

QUESTION:
Am I missing some Commons-DBCP 1.4 concept that makes the idea invalid?
Or am I re-inventing the wheel?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T06:11:13+00:00Added an answer on June 9, 2026 at 6:11 am

    There was no such tool, so I created it:

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

    It monitors Commons DBCP usage (using/waiting for connection) and allows one to create such graphs:

    enter image description here

    enter image description here

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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Disclaimer: I'm working in a project where exist an huge webapp that have an
I am using Jboss 4.0.2 in Solaris to run a webapp. JBoss is configured
am wondering if I'm doing this right. I want to split a huge py
I'm using Spring Security and I would like to know which users are currently
our webapp collects huge amount of data about user actions, network business, database load,
We have a huge amount of webApplications running on IIS6. Because we want to
I'm trying to get my models related using ReferenceProperty, but not have a huge
I have a Django-based webapp that is using PostgreSQL as the backend via psycopg2.
I have a huge XML document 200MB in size containing textual information. The data
I have a huge checkbox list with different levels and I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.