Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Linux 效能監控常用指令速查表

編輯:Linux 教學
指令用途常用參數範例
top即時顯示進程 CPU/記憶體佔用、系統負載top -d 2 每 2 秒刷新
vmstat虛擬記憶體、CPU、I/O、系統切換綜合統計vmstat 2 5 每 2 秒取樣 5 次
iostatCPU 負載與磁碟 I/O 吞吐量iostat -x 3 擴充統計每 3 秒
sar系統活動報告器,歷史資料分析sar -u 1 10 CPU 使用率
mpstat多核心 CPU 個別統計mpstat -P ALL 2
netstat網路連線、路由、介面統計netstat -antp TCP 連線含 PID
ssnetstat 現代替代品,更快ss -antp
iftop即時頻寬佔用 Top 列表iftop -i eth0
nethogs依進程顯示頻寬佔用nethogs eth0
tcpdump抓取封包深度分析tcpdump -i eth0 -w capture.pcap
dstat綜合 vmstat/iostat/ifstat/netstatdstat -cdngy
free記憶體使用概覽free -h
df / du磁碟空間/目錄大小df -h / du -sh *
pidstat進程級 CPU/記憶體/I/O 統計pidstat -u 1 -p PID

選擇建議

  • 快速總覽:top / dstat
  • 記憶體壓力:vmstat / free
  • 磁碟瓶頸:iostat -x / pidstat -d
  • 網路疑難:ss -antp / iftop / tcpdump
  • 多核心分析:mpstat -P ALL
Copyright © Windows教程網 All Rights Reserved