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.:
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 ]