Network usage top/htop on Linux

xxxxxxx picture xxxxxxx · Dec 15, 2008 · Viewed 211.4k times · Source

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

Answer

kozz picture kozz · Mar 5, 2009

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