Server is slow or unresponsive due to high load: use top, htop, iotop, and ps to find the problematic process.
Applies to:
✔ VPS
✔ Dedicated servers
✔ Linux
uptime
Load average above the CPU count means overload. Check CPU count:
nproc
top -bn1 -o %CPU | head -20
Interactive: top, press P for CPU sort, M for memory sort.
ps aux --sort=-%mem | head -15
apt install htop -y
htop
apt install iotop -y
iotop -o
Alternative:
pidstat -d 1 5
Graceful:
kill PID
Forced:
kill -9 PID
Before terminating a process, make sure it's not a critical system service. Killing mysql, nginx, or sshd will make the corresponding services unavailable.
uptime
If the load returns after terminating the process, the root cause must be found (cron jobs, malware, memory leaks). Open a support ticket if you cannot identify the source.