运维命令
一、如果linux服务器响应慢,先查大概情况
- vmstat 讲解
- top
二、如果是cpu问题
如何分析是不是cpu问题? http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages
二、如果是内存问题
用 free -m
三、如果是io任务重,用
iotop 讲解
iotop command displays columns for the I/O bandwidth read and written by each process/thread during the sampling period. It also displays the percentage of time the thread/process spent while swapping in and while waiting on I/O.