Where to start First steps track · 15 stages
Linux Labs

System monitoring: where to start when the server is slow

cheat sheet · Ubuntu 24.04 · procps 4.0 · sysstat 12.6 https://lab.dimsanych.ru/en/wiki/system-monitoring/

Cheat sheet

  • uptime; nproc load and CPU count
  • vmstat 1 5 queue, memory, swap, disk, CPU
  • top processes: P — by CPU, M — by memory
  • free -h memory: look at available
  • iostat -dxs 1 3 disks: await, aqu-sz, %util
  • sudo pidstat -d 1 3 who reads and writes the disk
  • sudo journalctl -k -p err -b kernel errors of this boot
  • mpstat -P ALL 1 3 load of each CPU
Loading…