[2.5] Large amount of <defunct> processes seen in MAAS over time
Bug #1793448 reported by
Mike Pontillo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Blake Rouse |
Bug Description
Steps to reproduce:
- Leave MAAS running
- Observe the output of a command such as 'ps fuaxww'.
- A large amount of "[sudo] <defunct>" processes can be seen in the output. (These correlate in the logs with runs of "sudo systemctl status".)
Related branches
~blake-rouse/maas:fix-1793448
Merged
into
maas:master
- Mike Pontillo (community): Approve
-
Diff: 76 lines (+35/-1)2 files modifiedsrc/provisioningserver/utils/service_monitor.py (+2/-1)
src/provisioningserver/utils/twisted.py (+33/-0)
tags: | added: track |
tags: | added: sprint |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Blake Rouse (blake-rouse) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I patched the code to add "-n 0 --no-pager" and remove "sudo" when calling "systemctl status"[1].
Now I see the following defunct process:
maas 24458 0.0 0.0 0 0 ? Z 23:48 0:00 | \_ [systemctl] <defunct>
So I've ruled out `sudo`, the pager (which shouldn't have been used anyway since there is no PTY), and extraneous log output causing issues.
[1]: https:/ /paste. ubuntu. com/p/CpcKtmRDG m/