Published on : July 19, 2019 by Andy Robert
cPanel Shared Hosting can fall prey to server instabilities due to multiple users abusing the server resources. This can eventually cause service failures affecting all users. That’s where the cPanel resource monitor helps.
i) Ensure server stability
The primary advantage of resource monitoring is increasing server stability. It helps to ensure that the resources on the server are properly distributed among the users. It tracks the disk space usage, memory usage and ensures proper distribution of processing power too.
ii) Track suspicious process Again, resource monitoring is an effective way to identify suspicious process too. Usually, the malicious process consumes too much memory or processing power of the server. Thus, it slows down all other processes on the server. And, if we can determine the user that runs the process, it really helps in bringing the server back to normalcy.
1. WHM server status
By default, cPanel servers come with the option to see the resource usage at any point of time. All these details can be viewed from the Server Status page in WHM. To view the status of each service on the server, we need to click on the Service Status section as shown below.
This will show up the complete list of services including Apache usage and MySQL usage. Additionally, it provides a detailed listing of CPU usage and disk space usage.
2. CloudLinux LVE Manager
For advanced tracking of resource usage, the basic details provided by WHM may not be enough. Some server owners may require a report for each individual account. In such cases, we’ve seen CloudLinux as one of the useful options.
Luckily, CloudLinux LVE manager shows up the resource usage on per account basis. Similarly, it comes with the option to limit some of the user's resources. Thus, the server owner can decide on the maximum resources that a user can consume. Additionally, there are options to alert users if they periodically go beyond their usage limit. It helps server owners to migrate users to higher plans based on resource usage too.A typical resource usage status of a cPanel server looks as below. It clearly shows the memory usage of each user.
Yet another way for cPanel resource usage monitoring is using third-party plugins like Resource Monitor. It allows easy integration with WHM and filters high resource cPanel users based on usage of CPU, memory, MySQL and disk usage. The installation of these plugins are pretty straight forward too.
Again, the choice of the right tool depends largely on the requirement of customers, type of servers, etc. too.
This is a description of each of the Resource Monitor tabs inside of the WHM, and what function they perform.
Overview: A general look at the current resource usage and pertinent server information.
Top Users: A breakdown of users with the highest consumption of memory resources on the system and a comparison their individual statistics.
CPU: A breakdown of users with the highest load on the system CPU (users and system users).
Memory: A breakdown of users with the highest consumption of physical memory (RAM) on the system (users and system users).
Mysql: A breakdown of users with the highest consumption of Mysql resources on the system (users and system users).
Disk: A breakdown of the users taking up the most hard disk space on the system.
Settings: Set threshold settings for these reports as well as notification settings for the exceeding of thresholds.
General Gauge Usage:
Here are some general descriptions of the gauges inside Resource Monitor and what they might mean to you as a cPanel/WHM system administrator:
System: Gives a general projection of the server’s resource usage based on current service and memory utilization.
Memory: The percentage of the total physical memory (RAM) that is currently being utilized.
Cached: The percentage of the total cache memory that is currently being utilized.
CPU: The percentage of total CPU power that is currently being utilized.
Disk: The percentage of total disk space that is currently being utilized.
Clicking on any tab will take you to a list of high resource users on the system for that particular resource, which gives you the ability to display usage statistics for a specified date range. You can change threshold settings for each individual service by clicking on the Settings tab.
Using some of the tools mentioned above we can keep a close monitor on the server and avoid any excess resource usage by any individual or multiple users and hence we can take necessary actions to keep the server stable.