Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2116

Memory leak in python client

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: proton-c-0.29.0
    • Fix Version/s: proton-c-0.30.0
    • Component/s: python-binding
    • Labels:
      None

      Description

      The Python client leaks transports and selectables. When using the BlockingConnection classes, Containers, Collectors and other runtime class objects can also leak as additional referents.

      To reproduce, run the test case leak.py against the example broker. Kill and restart the broker repeatedly. The value of gc.get_objects() keeps increasing.

      Breaking the circular references between transports and selectables prevents these leaks.

       

        Attachments

        1. leak.py
          1 kB
          Clifford Jansen

          Activity

            People

            • Assignee:
              cliffjansen Clifford Jansen
              Reporter:
              cliffjansen Clifford Jansen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: