Statistics and resource usage
StackRegent measures what your subscription uses. Statistics shows disk space, traffic and visitors; Resource Usage shows the CPU, memory, disk and processes your websites, PHP and scheduled tasks use right now and over time. Both need the Statistics, logs and resource usage area in your role.
Usage at a glance#
- Home shows, for each subscription, a Usage card with disk space, traffic, mailboxes, MariaDB databases and domains against the plan's limits.
- The subscription page has a Resources card with all limits and their use.
- Account › Resources lists every limit of the plan with how much is used.
Disk space is counted every night and traffic every hour.
Statistics#
Open Statistics from Home or the subscription page.
| Card | Contents |
|---|---|
| Disk space | Total used against the limit, split into Websites, Logs, Mail, Databases, Backups and Anonymous FTP, with the time it was measured |
| Traffic this month | Traffic counted against the limit, and a table of Received and Sent per month |
| Web statistics | One tile per website, opening its visitor statistics |
| Resource graphs | CPU, memory and other graphs over a time range you choose |
Click Recalculate disk usage to measure disk space now instead of waiting for the night.
Web statistics of a website#
Open a website's Web statistics tile (or Web Statistics in its website tools). The page shows:
- totals for Visitors, Pages, Hits and Errors,
- a chart of Daily visits for the chosen month,
- Most visited pages, Referring sites, Browsers, Status codes, Pages not found (404) and Hits by hour.
Choose another month at the top. The numbers are read every night from the website's IIS logs, so today appears tomorrow.
Logs and tracing#
For details of single requests, open the website and use:
- Logs: IIS access logs and the PHP error log. Choose the file and the number of lines, Filter, tick Follow to refresh every five seconds, or Download.
- Failed Request Tracing: switch on Trace failed requests for chosen Status codes or slow requests, then download the traces.
Resource usage#
Open Resource Usage from Home or the subscription page. It covers all processes of the subscription's Windows user: IIS worker processes, PHP and scheduled tasks. 100% CPU is one core of the server.
Choose 24 hours, 3 days or 30 days at the top.
| Card | Shows |
|---|---|
| CPU | Current use against the limit, with 24-hour average and peak |
| Memory | Current use against the limit, with 24-hour peak |
| Disk I/O | Read and write speed and operations per second |
| Processes | Running processes against the limit, and whether a limit was reached |
Below are graphs of CPU (% of one core), Memory, Disk read and write and Processes, each with the limit as a red line when there is one.
The Processes list shows every process running as your subscription with CPU, Memory and start time. Click End to stop a process that hangs or uses too much.
When a limit is reached#
CPU, memory, disk I/O and processes#
These limits are hard caps, enforced all the time:
| Limit | What happens |
|---|---|
| CPU | Websites slow down instead of slowing down the whole server |
| Memory | Programs get out-of-memory errors; PHP shows HTTP 500 |
| Disk I/O | Reading and writing is slowed down |
| Processes | New PHP processes and tasks wait or fail |
The Processes card says "A limit was reached in N minutes of the last 24 hours" when this happened. If it happens often, optimise the website (caching, fewer heavy plugins, lighter scheduled tasks) or ask your provider for a larger plan.
Disk space and traffic#
Your plan may warn you before you reach the disk space or traffic limit: by default you get a notice when usage reaches 90%. What happens above the limit depends on the plan's Overuse policy:
| Overuse policy | Effect |
|---|---|
| Overuse is not allowed | The subscription is suspended when the limit is exceeded |
| Overuse of disk space and traffic is allowed | Disk space and traffic may go over; other resources are blocked |
| Overuse is allowed | Nothing is blocked |
A suspended subscription shows "This subscription is suspended: its websites and mail are off. Contact your provider." To get it back, free disk space (old backups, logs, unused files and mailboxes) and contact your provider, or ask for a larger plan.
Count limits#
Limits on domains, mailboxes, databases, FTP accounts and similar items stop new items from being added: for example, Add FTP account is greyed out when the limit is reached. Remove unused items or ask your provider to raise the limit.
Troubleshooting#
| Problem | Explanation |
|---|---|
| Disk space looks out of date | It is measured every night; use Recalculate disk usage |
| No web statistics yet | They are read every night from the logs |
| Usage notice "Resource limits are switched off server-wide" | Usage is still measured, but not limited |
Related#
- Getting started
- Backups and scheduled tasks
- Websites and domains
Something missing? Ask in the community or open a ticket.