2016年6月26日 星期日

[Linux] 常用來監控系統的相關指令



  • top / htop
    description : 列出Procces/CPU/Memory的使用率
    show items : CPU usage, Memory usage, Swap Memory, Cache Size, Buffer Size, Process PID, User, Commands
  • vmstat
    //description : Virtual Memory Statistics
    //show items : virtual memory, kernerl threads, disks, system processes, I/O blocks, interrupts, CPU activity
  • lsof
    //description : 可列出Process所使用的的檔案(fd)
    //show items : disk files, network sockets, pipes, devices and processes
  • iotop
    //description : 列出Process對IO使用狀態 //show items : DISK READ, DISK WRITE, SWAPIN
  • iostat
    //description : 列出每顆Disk的IO使用狀態 //show items : tps, read/s, write/s, read, write
  • iftop
    //description : 列出所有session的網路使用率 //show items : src ip , dst ip , rate( 2s 10s 40s 的平均值 )


Reference:
[1] 20 Command Line Tools to Monitor Linux Performance

沒有留言:

張貼留言