When there are multiple instances of a process running, it would be much more helpful to if nethogs could show the arguments to all processes.
Agreed! Perhaps we should add a -c flag like top
Hmm, we actually already show the arguments, right? For example I see ..sr/lib/chromium/chromium --show-component-extension-options --ignore-gpu-blacklist --disable-background-n.
..sr/lib/chromium/chromium --show-component-extension-options --ignore-gpu-blacklist --disable-background-n
Related to #103 .
On RHEL 7.1 running the nethogs 0.8.5 (built from source) I don't see arguments for any process. Lots of "ssh", "/usr/bin/perl", and other commands, but no arguments for any of the. Tried both "sudo nethogs" and running nethogs from a root shell... still no arguments.
Ah, it seems chromium does something 'special' there: if I look at /proc/<pid>/cmdline, usually for commands like perl the command is separated from the parameters with \0 characters, but for chrome they're spaces. Odd.
I don't have Chrome installed on this machine right now so I can't check... it's possibly an artifact of a wrapper script Chrome uses that ends up joining all its arguments with spaces between them. Null bytes are the standard delimiter so that individual arguments can have space in them without being confused with being separate args.
I confirm, Chrome rewrites cmdline,
As for this issue, I almost finished implemetation, anomen-s/nethogs@d74711e
Add -l option to show full command line (fixes #23)