Linux 网络状态监控、网络性能测试

本文介绍了Linux下五款用于网络状态监控和性能测试的工具:nethogs(进程级别监控)、nload(网卡级别流量监测)、cmb(简洁的网络流量展示)、iPerf(网络性能测试)和iftop(主机级别连接监控)。这些工具可以帮助管理员实时了解网络状况,优化网络性能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在进行生产环境网络状态检测、测试网络质量、网络传输能力极限的时候就经常会用到下面的 Linux 工具,每一种工具都有其侧重点,我们可以根据具体的关注点来有选择性的使用这些工具。

一、nethogs(进程级别)

[外链图片转存中...(img-eQa6pgkT-1600159051559)]

NetHogs is a simple open-source utility that runs in the terminal. Instead of breaking the traffic down per protocol or per subnet, it groups bandwith by process. It is very helpful for finding the PID of a hanging program or just for seeing what is eating your bandwidth. It relies mostly on /proc, so most features are Linux-only.
NetHogs 是一个在终端中运行的简单开源实用程序。它不是按协议或每个子网分解流量,而是按进程对 bandwith 进行分组。这对于查找挂起程序的 PID 或仅查看正在消耗带宽的内容非常有帮助。它主要依赖于/proc,因此大多数功能仅适用于Linux。

To run it, simply use:
要运行它,只需使用:

sudo nethogs

Conveniently, you can specify devices after the command (such as sudo nethogs eth0). You also have additional parameters, such as choosing a delay for the refresh rate (-d), version info (-V), tracemode (-t) and a few others which you can check out in the man pages

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值