# Track requests that does not close all the db connections that initially opened (Java & Oracle)

**URL:** <https://community.dynatrace.com/t/track-requests-that-does-not-close-all-the-db-connections-that-initially-opened-java-oracle/20785>\
**Category:** Open Q&A\
**Tags:** databases, java\
**Created:** [November 12, 2020, 8:49am UTC](https://community.dynatrace.com/t/track-requests-that-does-not-close-all-the-db-connections-that-initially-opened-java-oracle/20785 "2020-11-12T08:49:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Joe\_Hoffman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joe_hoffman/32/30752_2.png) [@Joe\_Hoffman](https://community.dynatrace.com/u/Joe_Hoffman)\
**Post date:** [November 12, 2020, 3:45pm UTC](https://community.dynatrace.com/t/track-requests-that-does-not-close-all-the-db-connections-that-initially-opened-java-oracle/20785/5 "2020-11-12T15:45:28Z")

</div>

Even in a pooled connection based architecture I have seen situations where the problem was simply that the worker thread was not ‘returning’ the connection to the pool. This can be tracked using explicit instrumentation of the getConnection() and closeConnection() methods. Then build a BT that reports these values on a per URL basis. The culprit might just pop out. Of course as stated earlier there’s several iterations of this problem, and this technique might not catch them all. But with some creative instrumentation you should be able to track down the offending pattern.

---

_[View the full topic](https://community.dynatrace.com/t/track-requests-that-does-not-close-all-the-db-connections-that-initially-opened-java-oracle/20785)._
