Linux网络流量监控工具nethogs
有时候会发现访问Linux服务器特别卡顿或者登录服务器SSH后台进一步发现大量带宽被占用,有什么简单办法能找出哪个进程占用了带宽呢?Linux 监控流量的小工具不少,如 iftop, iptraf等,大都是统计和监控网卡流量的,之前有介绍 iftop工具 ,今天介绍的NetHogs 有点特别,Nethogs 也是Linux下开源的网络流量监控工具,它的特别之处在于可以监控每个进程的网络带宽占用情况,这样可以更直观获取网络使用情况 nethogs - Net top tool grouping bandwidth per process NetHogs is a small ’net top’ tool. Instead of breaking the traffic down per protocol or per subnet, like most such tools do, it groups bandwidth by process - and does not rely on a special kernel module to be loaded. So if there’s suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is