diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2019-12-27 10:08:31 +0100 |
---|---|---|
committer | Pavel Moravec <pmoravec@redhat.com> | 2019-12-25 16:43:47 -0500 |
commit | 3265cba9a9c7e922c7bdd01041497a7a0e7d42bf (patch) | |
tree | 083d5140c6b3552bf94c9d505290063f211b2397 | |
parent | 03e3a9ca9a9d60fee50f7b22f65cd84d65cfed2f (diff) | |
download | sos-3265cba9a9c7e922c7bdd01041497a7a0e7d42bf.tar.gz |
[process] Update pstree to display PIDs and not truncate
By default pstree will truncate long lines, which can make it difficult
to identify processes a support representative is chasing - this is
especially true for container process names.
First, don't truncate long lines anymore. Second, add PID numbers to the
pstree output to allow more accurate analysis of pstree output.
Resolves: #1905
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/process.py b/sos/plugins/process.py index a01f93f5..e1c2567a 100644 --- a/sos/plugins/process.py +++ b/sos/plugins/process.py @@ -39,7 +39,7 @@ class Process(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): self.add_copy_spec("/proc/[0-9]*/smaps") self.add_cmd_output("ps auxwww", root_symlink="ps") - self.add_cmd_output("pstree", root_symlink="pstree") + self.add_cmd_output("pstree -lp", root_symlink="pstree") if self.get_option("lsof"): self.add_cmd_output("lsof -b +M -n -l -c ''", root_symlink="lsof") |