Three commands to diagnose 95% of server slowness.
Live CPU and RAM
apt install -y htop
htop
Sort by CPU (F6 → PERCENT_CPU) or memory. q to quit.
Disk space
df -h # usage per partition
du -sh /var/* | sort -h # what's eating space in /var
Memory
free -h
Check the available column — that's truly free RAM (disk cache is normal).
Who listens on which ports
ss -tulpn | grep LISTEN
df -h at 100%) crashes databases and services — it's the #1 cause of VPS outages.











