BTM
  1. BTM
  2. BTM-78

add connection leak detection

    Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.3
    • Fix Version/s: 3.0.0
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When a connection leaks from the pool it currently is very hard to trace back why. A new kind of timed task should be created which will report the connection as leaked after a configurable amount of time.

      A stack dump should also be taken when the connection is acquired and reported when it is declared leaked.

        Activity

        Hide
        Brett Wooldridge added a comment -

        If we add this feature, I think leak detection should be configurable (on/off). Capturing a stacktrace on every connection acquisition is rather expensive (several to tens of milliseconds). An additional complication, because connections can be shared ... i.e. getConnection() called in more then once place by a single-thread resulting in the same connection object, keeping track of which stacktrace goes with which invocation could be tricky.

        Show
        Brett Wooldridge added a comment - If we add this feature, I think leak detection should be configurable (on/off). Capturing a stacktrace on every connection acquisition is rather expensive (several to tens of milliseconds). An additional complication, because connections can be shared ... i.e. getConnection() called in more then once place by a single-thread resulting in the same connection object, keeping track of which stacktrace goes with which invocation could be tricky.

          People

          • Assignee:
            Ludovic Orban
            Reporter:
            Ludovic Orban
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: