Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2166

MemoryLeak in the ResourceAdapter (ManagedConnectionProxy)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.0, 4.1.1, 4.1.2, 5.0.0, 5.1.0, 5.2.0
    • 5.3.0
    • JCA Container
    • None
    • Patch Available

    Description

      The ActiveMQ JCA Resource Adapter leaks about 1Kb of memory when opening and closing sessions on the same connection. As soon as the connection is closed this memory is released, but it's a common use case to keep the connection for a very long time (ie aquire at startup and relase at shutdown).

      The leak happens because the ManagedConnectionProxy holds a list of sessions that have been openend, but there's no code that removes a closed session from the list.

      Attachments

        1. AMQ-2166.patch
          3 kB
          Mario Siegenthaler

        Issue Links

          Activity

            People

              djencks David Jencks
              msiegenthaler Mario Siegenthaler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 10m
                  10m
                  Remaining:
                  Remaining Estimate - 10m
                  10m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified