So typically here is what I do when I log on to a server that is having perf issues:
1.Run Top… give it a quick once over… I check for :
- 1.find the amount of memory,
2.the load average
3.Current CPU
4.look to see if other processes are stealing CPU time.
5.Is the system waiting on IO
6.Are you swapping
2.Run Iostat -x 10
- 1.Look for the busy disk, make sure that await+srvtm is < 5ms, <10ms if the disk stinks.
2.Look at the r/s -vs- w/s to get a general feel for what the box is doing.
3.Uname -a
- 1.What? Yep I check to make sure the kernel on the server is up to date and that the client is running a 64 bit OS
4.Run Sar
- 1.I Run SAR without any parms to get todays cpu, and look for spikes in sys+usr as well as high periods of IO
2.I run SAR -n DEV and look to see how saturated the network pipe is
3.I run sar -f /var/log/sa[day] to get a previous days numbers so I can compare today with that other day.
5.Check the disk space
- 1.df -h
本文介绍了一套实用的服务器性能诊断流程。首先通过Top检查内存、负载平均值、CPU使用情况等;接着使用Iostat监测磁盘活动及等待时间;通过Uname验证内核版本与系统位数;利用Sar跟踪CPU和网络饱和状态;最后检查磁盘空间使用情况。
3万+

被折叠的 条评论
为什么被折叠?



