If you wish to monitor the top bandwidth consuming processes on a Linux system, you can use the nethogs program, which displays bandwidth usage by process. It will display the process id (PID) of the processes consuming the most bandwidth. E.g.:
NetHogs version 0.8.5 PID USER PROGRAM DEV SENT RECEIVED 19355 jim sshd: jim@pts/0 enp1s4 0.188 0.082 KB/sec 15022 apache /usr/sbin/httpd enp1s4 0.000 0.000 KB/sec ? root unknown TCP 0.000 0.000 KB/sec TOTAL 0.188 0.082 KB/sec
The above output shows me that the two processes consuming the most bandwidth at the time the program was run had PIDs of 19355 and 15022. I can get additional information on those processes using the ps command.
$ ps 19355 PID TTY STAT TIME COMMAND 19355 ? S 0:19 sshd: jim@pts/0 $ ps 15022 PID TTY STAT TIME COMMAND 15022 ? S 0:00 /usr/sbin/httpd -DFOREGROUND $
[ More Info ]