Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
Attachments
Issue Links
- is duplicated by
-
AMBARI-17065 Memory leak on ambari-agent
- Resolved
- links to