在Linux上是否有htop/top,我可以根据网络使用情况对进程进行排序?
还iftop:
显示接口带宽使用情况 iftop对网络使用的影响就像top(1)对CPU使用的影响一样。它侦听指定接口上的网络流量,并显示主机对当前带宽使用情况的表。方便回答“为什么我们的ADSL链接这么慢?”的问题…
NetHogs可能就是你要找的:
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...
推荐文章
- 如何将文件指针(file * fp)转换为文件描述符(int fd)?
- Linux Bash中双&和分号有什么区别?
- 在SSH会话中查找客户端的IP地址
- C++ Linux的想法?
- 如何为Fedora安装g++ ?
- Linux删除大小为0的文件
- 模拟慢速互联网连接
- Spring引导应用程序作为服务
- 如何重定向标准derr和标准输出到不同的文件在同一行脚本?
- 127.0.0.1和localhost之间的区别是什么
- Windows和Linux上的c++编译:ifdef开关
- Linux: kill后台任务
- 为什么SCTP不常用/不为人所知
- 如何修改Linux系统中打开文件的数量限制?
- errno线程安全吗?