Monitoring resource usage (CPU, RAM)

To monitor CPU and RAM usage in cPanel/WHM, there are several built-in tools and methods, depending on whether you’re using cPanel (user level) or WHM (root/administrator level).

WHM (Web Host Manager) – Root/Admin Access

1. Server Status Tools:
  • WHM > Server Status > Server Information
    • Shows real-time data on CPU load, memory usage, swap, and processes.
  • WHM > Server Status > Daily Process Log
    • Displays the top users by CPU and memory usage over the past day.
2. Process Manager:
  • WHM > System Health > Process Manager
    • Similar to Linux top, lets you see and kill processes using excessive resources
3. Load Averages:

Found on the WHM home page and under “Server Information” — indicates CPU load over 1, 5, and 15 minutes.

4. Install and Use Plugins (Optional):

Tools like Netdata, Munin, or CloudLinux LVE Manager (if installed) provide advanced graphs and resource analytics.

CPanel (User Level)

1. cPanel > Metrics > Resource Usage (if CloudLinux is enabled)
  • This shows:
    • CPU, memory, I/O usage
    • Entry processes and faults
    • Historical graphs per day/hour
  • Note: This option is only available if your hosting provider uses CloudLinux OS.
2. cPanel > Metrics > Awstats / Analog Stats / Resource Usage Logs

While more focused on web traffic, sometimes you can infer resource strain from traffic spikes.

Command Line (if you have SSH access)
  • Use standard Linux tools:
    • top / htop – CPU and memory usage
    • vmstat – memory statistics
    • free -m – current RAM usage
    • ps aux –sort=-%mem – memory-hungry processes

Leave a Reply

Your email address will not be published. Required fields are marked *