Servers Gate Hosting's shared and reseller hosting servers run Cloud Linux. Cloud Linux monitors and regulates account resource usage to assist improve server performance and stability.
cPanel enables you to view detailed information about problematic processes and database queries running on your account. This information is really helpful for determining why a Cloud Linux resource limit was triggered.
Cloud Linux checks running processes every minute. Because Cloud Linux doesn’t check processes every second, it’s possible that short intervals of high usage can be missed.
Viewing resource limit information
To view resource limit information for your account, follow these steps:
1. Log in to cPanel.
2. In the METRICS section of the cPanel home screen, click Resource Usage:
3. On the Resource Usage page, cPanel displays a summary for your account. Depending on your account's resource usage, you could see:
- Your site had no issues in the past 24 hours: If you receive this message, your account didn’t trigger any limits within the past 24 hours.
- Your site has been limited within the past 24 hours: If you receive this message, your account triggered at least one resource limit within the past 24 hours. cPanel displays additional information about which resource (or resources) triggered the limit.
- Your site may hit resource limits soon: This message is a warning that your account may trigger resource limiting in the near future. cPanel displays additional information about which resource (or resources) of triggering a limit.
4. To view detailed resource usage information for your account, click the Details button or click the current Usage tab. cPanel displays usage graphs and a usage table:
- By default, cPanel displays resource usage information for the current day. To change the time interval displayed, in the Timeframe list box, choose the range of time to be displayed. In the time unit List box, choose the interval between the data points to be displayed.
5. To view resource usage snapshots, click the Snapshot tab. Depending on your account's resource usage, cPanel may display a list of processes and a list of database queries:
- Use the arrow buttons to view snapshots in sequence.
- Use the calendar list box to select a specific date to view.
- Use the Snapshot list box to select the snapshot for a specific time to view:
"For tips about how to interpret resource usage snapshots, please see the following section for an example."
Snapshot example
Let's look at an actual limiting scenario and see how snapshots help troubleshoot the problem. In this example, an account has had its CPU resources limited sometime within the past 24 hours:
To view additional information about the resource limiting, also as when it occurred, click the Snapshot tab. The following page appears:
On the method List tab, the following information is shown:
- PID: This is the method ID.
- CMD: This is the actual command that the method ran.
- CPU: This is the CPU usage for the method. In this case, bad_script.php exceeded CPU capacity twice (102% and 101%).
- MEM: This is the amount of memory used by the process, in megabytes.
From this information, we can determine that the PHP script bad_script.php has some kind of problem that causes it to use a large amount of CPU capacity.
"If the resource limit message relates to database usage, use the Database Queries tab to see information about problem queries. Use the HTTP Queries tab to view information about issues with HTTP."