查看资源利用率和饱和度,然后通过测量确认。 一个系统的方法 — USE 方法(Utilization、Saturation、Errors)— 检查每个资源,这样您就不会指责错误的资源。
USE 方法
对于每个资源(CPU、内存、磁盘、网络),提出三个问题:
text
UTILIZATION → how busy is it (% time in use)?
SATURATION → how much queued/waiting work (load, run queue, swap)?
ERRORS → any errors (dropped packets, disk errors, OOM kills)?
→ a resource that is saturated, not just busy, is usually the bottleneck.
