下面按常见操作系统给你一个“用 CLI 监控性能”的实用清单,偏实战命令,不废话。
top
或更现代:
htop
mpstat 1
或
sar -u 1
free -h
详细:
vmstat 1
iostat -x 1
或
dstat -d
iftop
或
sar -n DEV 1
pidstat 1
dstat -c -m -d -n 1
top -o cpu
内存:
vm_stat
磁盘:
iostat 1
网络:
nettop
tasklist
Get-Process | Sort-Object CPU -Descending
性能计数:
typeperf "\Processor(_Total)\% Processor Time"
docker stats
kubectl top nodes
kubectl top pods
sar(历史数据)prometheus + node_exporterglances(Web + CLI)htop + iostatsardstatdocker stats / kubectl top如果你愿意,可以告诉我:
✅ 系统(Linux / macOS / Windows)
✅ 场景(CPU 高?卡顿?网络慢?)
我可以直接给你针对性命令组合。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。