A user reports the cPanel server is slow. The right next question is “in which way” — because a CPU-bound server, a disk-bound server, and an I/O-bound server look identical from the user’s seat but require completely different fixes. Spending three minutes on the right triage commands saves three hours of guessing which knob to turn.
What’s happening
CPU-bound means the cores are saturated and threads are queued for CPU. The fix is fewer processes, faster code, or more cores. Disk-bound means the partition is full and processes are blocked waiting for write space. The fix is free space, raise capacity, or move workloads. I/O-bound means the disks can keep up with reads or writes but not both, processes are waiting on iowait. The fix is faster storage, fewer concurrent I/O, or different I/O patterns.
How to verify
The triage trio:
# CPU saturation
uptime # load avg vs cores
top -bn1 | head -20
# CPU per-process
ps -eo pid,user,%cpu,comm --sort=-%cpu | head -20
# disk fill
df -h
df -i # inode fill
# I/O wait
top -bn1 | grep "Cpu(s)" | awk '{print $5}' # %wa
iostat -xz 1 3
# per-process I/O
iotop -bn1 | head -20
The load average compared to core count is the headline number. Load of 8 on 4 cores means “the system is overloaded by 2x”; load of 8 on 16 cores means “comfortable”.
The fix
- CPU-bound —
topsorted by CPU shows the offender. Common culprits: a PHP process in infinite loop, MySQL with a slow query, a backup running unthrottled. Identify the user, kill the runaway, fix the underlying cause. - Disk-bound —
df -hshows the full partition.du -shfinds the consumer. Free space via deletion of non-critical files, raise the partition size if persistent. Watch inode count separately: a partition with 100% inodes used “looks” empty indf -hbut cannot create files. - I/O-bound —
iostat%utilover 80% means the disk is saturated.iotopidentifies the writer or reader. Common culprit: a runaway log file, an unbounded backup, MySQL with bad temp table configuration. Throttle the consumer, move to faster storage, or split I/O patterns. - Composite — many slowdowns are mixed: a slow query holds CPU AND drives high I/O. Fix the dominant axis first; the others usually fall in line.
- Persistent vs spike — if the metric is high but flat, the server is undersized. If it spikes at predictable times, the cause is a scheduled job.
crontab -land the user crontabs.
For trend visibility, sar (if installed) shows the metric over hours and days. Stack Harbor handles capacity-cause triage under WHM server management — start a conversation when “the server is slow” needs an actual cause.