在Linux上是否有htop/top,我可以根据网络使用情况对进程进行排序?
当前回答
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...
其他回答
检查bmon。它是cli,简单,有图表。
这不完全是问题所在——它不按进程划分,只按网络接口划分。
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...
Ntop或nagios
Iptraf是我的最爱。它有一个很好的ncurses界面,以及过滤选项等。
Jnettop是另一个候选。
编辑:它只显示流,不显示所有者进程。
推荐文章
- 如何在Linux中循环目录?
- 如何确定一个进程是否运行在lxc/Docker内部?
- 仅在文件不存在时才将行追加到文件中
- 互联网上最大的安全UDP包大小是多少
- 如何强制makefile重新构建目标?
- 如何在父进程退出后使子进程死亡?
- 从URL执行bash脚本
- [: shell编程中的意外操作符
- 在Unix中,我可以在一个目录中运行'make'而不首先cd'到该目录吗?
- 如何从命令行重置Jenkins安全设置?
- 如何查看Linux共享库正在导出的函数列表?
- 在Docker Alpine容器中启动一个shell
- 关闭vs关闭套接字?
- 快速unix命令显示文件中间的特定行?
- fork(), vfork(), exec()和clone()的区别