Monitor Your Server's Performance

Why Monitor Your Server?

Monitoring your server allows you to detect problems before they affect your users: a process consuming too much CPU, disk filling up, or RAM reaching its limit.

Essential Commands (SSH)

View CPU and RAM usage in real-time

top

For a more visual version, install htop:

yum install htop -y && htop

View disk usage

df -h

View which folders occupy the most space

du -sh /home/* | sort -rh | head -20

View RAM usage

free -h

View network traffic in real-time

yum install iftop -y && iftop

From WHM

WHM includes performance graphs in: WHM → Server Status → Server Information. You will see CPU, RAM, disk, and system load in real-time without using SSH.

Automatic Alerts

Configure alerts in WHM → Server Contacts to receive emails when CPU, disk, or memory usage exceeds defined thresholds.

⚠️ Warning Signs: If the server load (load average) consistently exceeds the number of CPUs, it's time to investigate which process is causing the problem with the top command.