Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-17539

Ambari Agent memory Leak fix.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • None
    • None

    Description

      Reason of memory leak:
      Race condition in subprocess python module.
      Due to this race condition at some unlucky cases python garbage collection was disabled.
      This usually happened when running alerts, as a bunch of our alerts run shell commands and they do it in different threads.

      Fix for the issue:
      Synchronizing subprocess is not the best option. Since some people can still use it without synchronization not knowing about the issue.
      Also synchronizing will provide some unnecessary slowdown. So for this issue the proposed fix is to monkey patch subprocess.gc.isenabled.

      Attachments

        1. AMBARI-17539.patch
          1 kB
          Andrew Onischuk

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: