Network usage top/htop on Linux

LinuxNetworkingTop CommandHtop

Linux Problem Overview


Is there a htop/top on Linux where I get to sort processes by network usage?

Linux Solutions


Solution 1 - Linux

NetHogs is probably what you're looking for: > a small 'net top' tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, it groups bandwidth by process. > NetHogs does not rely on a special kernel module to be loaded. If there's suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this. This makes it easy to identify programs that have gone wild and are suddenly taking up your bandwidth. > Since NetHogs heavily relies on /proc, most features are only available on Linux. NetHogs can be built on Mac OS X and FreeBSD, but it will only show connections, not processes...

Solution 2 - Linux

Also iftop: > ###display bandwidth usage on an interface > iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts. Handy for answering the question "why is our ADSL link so slow?"...

Solution 3 - Linux

iptraf is my favorite. It has a nice ncurses interface, and options for filtering, etc.

enter image description here

Solution 4 - Linux

jnettop is another candidate.

edit: it only shows the streams, not the owner processes.

Solution 5 - Linux

ntop or nagios          

Solution 6 - Linux

Check bmon. It's cli, simple and has charts.

Not exactly what question asked - it doesn't split by processes, only by network interfaces.

Solution 7 - Linux

Another option you could try is iptstate.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionxxxxxxxView Question on Stackoverflow
Solution 1 - LinuxkozzView Answer on Stackoverflow
Solution 2 - LinuxJim TView Answer on Stackoverflow
Solution 3 - LinuxrobbytView Answer on Stackoverflow
Solution 4 - LinuxEgilView Answer on Stackoverflow
Solution 5 - LinuxOliView Answer on Stackoverflow
Solution 6 - LinuxluchaninovView Answer on Stackoverflow
Solution 7 - LinuxDarth EgregiousView Answer on Stackoverflow