【发布时间】:2014-11-13 01:20:58
【问题描述】:
我需要在性能测试期间测量 RedHat 和 CentOS 上以下资源的利用率。请推荐最好的工具
- 内存使用情况
- CPU 使用率
- 磁盘 I/O
- 网络 I/O
【问题讨论】:
标签: linux profiling performance-testing
我需要在性能测试期间测量 RedHat 和 CentOS 上以下资源的利用率。请推荐最好的工具
【问题讨论】:
标签: linux profiling performance-testing
内存使用:
free 很棒,但htop 实际上也会回答您的 CPU 使用问题。
对于磁盘 I/O,iotop 可能是您想要的 - 但也有 iostat、atop 和 glances
至于网络 I/O - 我更喜欢 slurm - 但也有 iftop
但实际上有大量工具可供您使用,它们各有优缺点 - 我已经为您提供了我最喜欢的工具,但您可能更喜欢的工具比我提到的更多,到目前为止。
所以,做你的研究。阅读一些手册。谷歌是你的朋友。 man 是您将使用的最佳工具。
这些软件包也非常引人注目:
vmstat,lsof,netstat,iptraf,monit,nethogs
还有其他很棒的,例如nmon、collectl 和monitorix ---
希望这些链接始终有效,但如果它们不可用,我列出了每个提到的值得注意的包 (RTFM):
http://kkovacs.eu/cool-but-obscure-unix-tools
dstat
sar
htop
atop
glances
slurm
iftop
iptraf
nethogs
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/
vmstat
lsof
tcpdump (ngrep)
netstat
htop
iotop
iostat
iptraf
psacct / acct
monit
nethogs
iftop
monitorix
arpwatch
suricata
vnstat
nagios
nmon
collectctl
http://www.binarytides.com/linux-commands-monitor-network/
nload
iftop
iptraf
nethogs
bmon
slurm
tcptrack
vnstat
bwm-ng
cbn
pkstat
netwatch
trafshow
netload
ifstat
dstat
collectl
【讨论】:
【讨论】: