Resource usage
This page explains how to monitor accounts' CPU, RAM, IO, disk, and bandwidth usage, find the heaviest accounts, and read limit faults. It is written for admins, technicians, and support.
Open Resource usage in the Infrastructure group.
Where the data comes from
The panel samples every account's usage periodically, every 5 minutes by default. On generic servers the data comes from cgroups and disk quotas. On CloudLinux servers it comes from LVE.
| Layer | Contents | Kept for |
|---|---|---|
| Raw samples | Usage per account per interval. | 14 days |
| Hourly rollup | Average and peak CPU, RAM, IO, processes, last disk and inodes, and fault counts per account per hour. | About 400 days |
Windows up to 48 hours use raw samples. Longer windows use the hourly rollup. Chart titles name the source: raw samples or hourly rollup.
New servers
Right after a server is added, the rollup is still empty and charts use raw samples. The first sample only holds a point-in-time value. Trends become meaningful after a few hours.
Filters
The top of the page contains:
- Time window: Last 24 hours, Last 7 days, Last 30 days, Last 90 days, or Last year;
- Servers, Package, and Account;
- Apply filters and Reset.
Refresh reloads the data. Collect samples takes new samples now, without waiting for the interval.
Summary cards show, for the selected window:
| Card | Contents |
|---|---|
| CPU faults | CPU faults of all accounts. |
| RAM faults | RAM and RAM high faults. |
| OOM | Processes killed for running out of memory. |
| High disk | Accounts using 90% or more of their disk quota. |
| Bandwidth | Website data transfer of all accounts this month. This card always covers the current month, whatever the window. |
Bandwidth comes from the websites' access logs, the same data as the visitor statistics. It counts the current calendar month.
TIP
From a server's details, Actions › Resource trends opens this page with that server and a 7-day window.
Resource trends per server
The Resource trends card shows the combined usage of all accounts on one server. When All servers is selected, up to 6 servers are shown.
Each card contains:
- CPU avg · peak: average and peak CPU of all accounts;
- RAM avg · peak: average and peak RAM;
- Disk (accounts): total account disk;
- Limit faults: total faults in the window;
- Bandwidth this month: website data transfer of all accounts on the server this month;
- CPU, RAM, IO, and disk charts.
Comparison with the previous period
Trend chips compare this window's average with the previous window of the same length, for example the last 7 days against the 7 days before:
| Chip | Meaning |
|---|---|
| CPU, RAM, IO change (%) | Up or down compared with the previous period. |
| Fault change | Difference in fault count. |
| Disk growth per day | Computed with linear regression over the window. |
| disk quota full in ~N days | Estimated days until the disk quota is full if the upward trend continues. |
When the previous window has no data yet, the chip shows not enough history.
Capacity planning
Use a 90-day or 1-year window to see long-term growth. Compare it with the server's capacity rules before adding accounts.
Top resource users
The Top resource users table shows the accounts with the highest usage in the selected window. CPU and IO are averages, RAM is the peak, and bandwidth is the current month.
| Column | Contents |
|---|---|
| CPU avg / peak | Average and peak CPU. 100% = one core. The second line, DB 37.5% · 212 q/s, is the account's MariaDB query CPU and queries per second (see Database load). |
| RAM peak | Peak RAM. |
| IO avg | Average IO. |
| Disk / inodes | Last disk and inode usage. |
| Bandwidth (month) | Data transfer this month, with the percentage of the package's monthly bandwidth limit, or Unlimited. Red from 90%. |
| Faults | Fault breakdown: CPU, RAM, OOM, NPROC, EP. |
Use Sort by to sort by CPU, RAM, IO, faults, disk, database, or bandwidth. Search for an account or server in the search box. Click Explore to open that account's usage page.
Database load
MariaDB runs every query in its own mysqld process, so a site with heavy queries does not show high CPU in the account's own usage. MoorCP measures database load per account separately, from MariaDB's per-user statistics (userstat) of the account's database users (<account>_*):
| Value | Meaning |
|---|---|
| Query CPU | CPU MariaDB spends on the account's queries. 100% = one core. |
| Busy | Time spent running queries, including waiting for locks and disk. 100% = one query running all the time. |
| Queries/s | SELECT, UPDATE, and other commands per second. |
| Rows read/s | Rows read per second. A high value usually means queries scan tables without an index. |
Where to see it:
- Top resource users: the second line in the CPU column, and Sort by › Database. Hover the line for busy time and rows read.
- Accounts › account › Resources & limits: the Database CPU (MariaDB) and Database queries charts.
The agent turns userstat on in the server's local MariaDB on its first sample; the overhead is small. To turn it off, open Servers › server› Settings › Databases, then click Turn off on the Per-account database statistics row under Running queries. With an external MariaDB endpoint, userstat is managed by that endpoint.
Running queries
To see what is slow right now, open Servers › server › Settings › Databases › Running queries (all accounts), or Accounts › account› Database › Running database queries. The list shows MariaDB and PostgreSQL connections with the account, user, how long the query has been running, its state (for example Waiting for table metadata lock), rows read, and the query. It refreshes every 5 seconds.
- Values in queries are replaced with
?so customer data is not shown. Admins and technicians can tick Full query text to see the whole query; it does not refresh on its own, and every view is recorded in the audit log. - Stop cancels the query (the site gets an error for that query) or closes the connection (its open transaction is rolled back). Only connections of account database users can be stopped, never
rootor other system users. Every stop is recorded in the audit log asdatabase.kill. - When several servers share one database endpoint (external database), each server lists only the connections of its own accounts.
- Tick Show idle to also list idle connections, for example to close connections that hold a lock.
For queries that were slow over the last hours or days, use Slow queries on the same page.
Quotas
The Quotas card summarizes the limits set per package:
| Limit | Meaning |
|---|---|
| CPU | Maximum CPU share, as a percentage of one core. |
| RAM | Maximum memory available to the account. |
| IO | Maximum disk I/O throughput (read/write, MB/s) and IOPS. |
| Disk | Maximum disk space. |
| Inodes | Maximum number of inodes (files and directories). |
| Bandwidth | Monthly data transfer from websites. It is reported, not enforced: websites keep running over the limit. |
IO limits are entered and shown in MB/s, as in CloudLinux LVE Manager. IO usage in this page's charts and table is shown in KB/s. Every limit and quota in a package can be set to Unlimited.
Click Edit package limits to open Packages.
Limit faults
A fault means an account hit one of its package limits. Frequent faults usually make a website slow or return errors.
| Fault | Meaning | Symptom on the website |
|---|---|---|
| CPU | Processes were throttled for exceeding the CPU limit. | Slow |
| RAM | Usage hit the RAM limit. | Slow, error 500 |
| OOM | A process was killed for running out of memory. | Error 500 or 503 |
| RAM high | Memory was forcibly reclaimed before the limit. | Slow |
| NPROC | The process count reached the limit. | Errors under many requests |
| EP (CloudLinux) | Entry processes are full. | Error 508 |
CloudLinux
On CloudLinux servers, CPU throttling is not recorded as a fault because LVE does not provide a counter for it. Entry process faults only exist on CloudLinux servers.
Drilling into one account
The account usage page (Accounts › (account) › Resources & limits) shows:
- CPU, memory, IO read/write, process, disk, and inode charts;
- a 6-hour, 24-hour, 7-day, or 30-day window;
- fault cards: CPU faults, RAM faults, OOM (out of memory), process faults, RAM high, and entry process faults;
- trend chips: change, disk growth, and estimated time until the quota is full;
- the data source and sampling interval.
Sample now takes a sample of that account now.
Acting on faults
- See which fault type occurs most often.
- Check for unusual processes or scripts, for example piling-up cron jobs or a plugin that leaks memory.
- If the usage is legitimate, raise the limits by changing the account's package. Click Edit package limits to change the package.
Limit Explainer for clients
Clients can see for themselves why their site is slow or failing through Website health in the client panel. The Limit Explainer there reads usage statistics and the limits in force, then:
- ranks findings from most to least severe (EP, CPU, memory, processes, IO, disk, inodes);
- explains them in plain language, for example entry process faults as error 508;
- suggests the smallest package that raises every problematic limit without lowering any other. If some packages are linked to billing, only those packages are suggested.
The window is 24 hours, 7 days, or 30 days. Billing can use the same data through the API. See Website health.
