Monitor Network Traffic by PID with “nethogs” on Linux March 9, 2011Posted by Tournas Dimitrios in Linux admin tools.
Have you ever notice some suspicious spikes in your internet connection and wondered “What the hell is using up all that bandwidth ? ” , or worse , ” Have I been hacked?” . If so , then nethogs might be the program for you . It’s a lightweight Linux terminal-based tool that monitors bandwidth usage , then groups it by process , so you can see which PID’s are using the most bandwidth , and if necessary , kill them with gnome-system-monitor or kill .
If EPEL is on the repository list of CentOs 5.x , yum will handle the installation .
Similar utility is iftop .