Documentation

Statistics and resource usage

4 min read Updated From the StackRegent manual

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.

CardContents
Disk spaceTotal used against the limit, split into Websites, Logs, Mail, Databases, Backups and Anonymous FTP, with the time it was measured
Traffic this monthTraffic counted against the limit, and a table of Received and Sent per month
Web statisticsOne tile per website, opening its visitor statistics
Resource graphsCPU, 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.

CardShows
CPUCurrent use against the limit, with 24-hour average and peak
MemoryCurrent use against the limit, with 24-hour peak
Disk I/ORead and write speed and operations per second
ProcessesRunning 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:

LimitWhat happens
CPUWebsites slow down instead of slowing down the whole server
MemoryPrograms get out-of-memory errors; PHP shows HTTP 500
Disk I/OReading and writing is slowed down
ProcessesNew 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 policyEffect
Overuse is not allowedThe subscription is suspended when the limit is exceeded
Overuse of disk space and traffic is allowedDisk space and traffic may go over; other resources are blocked
Overuse is allowedNothing 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#

ProblemExplanation
Disk space looks out of dateIt is measured every night; use Recalculate disk usage
No web statistics yetThey are read every night from the logs
Usage notice "Resource limits are switched off server-wide"Usage is still measured, but not limited
  • Getting started
  • Backups and scheduled tasks
  • Websites and domains
Was this article helpful?

Something missing? Ask in the community or open a ticket.