Skip to content
xYnta
Go to websitexynta.com
Search
EN

Understanding Resource Usage

Updated on

Every hosting package has a guaranteed amount of server capacity, such as processing power (CPU), memory and a maximum number of concurrent processes. How much that is for your package is shown on the package page of Web Hosting and Reseller Hosting. If your website is running into those limits, this article explains how to recognise it, how to check the usage and how to tackle the most common causes.

When does your package run into its limits?

When your package reaches its maximum capacity, your website may become slow or temporarily unreachable. Common causes are:

  • a plugin or script: a faulty or heavy plugin can end up in a loop and use capacity continuously;
  • a cron job: an incorrectly configured cron job can use up all capacity;
  • a poorly optimised website: inefficient code or too many plugins can overload the package;
  • a sudden traffic spike: many more visitors than usual, or an attack.

Quick overview: the website check

Go to the website check, enter your domain name, choose Quick scan and click Check website. In the report, under Speed or Availability, you see straight away whether there are signs of overload, with the recommended actions.

Checking your usage in DirectAdmin

  1. Log in to DirectAdmin

    Log in via Single Sign-On from Mijn xYnta, or at https://yourdomain.nl:2222.

  2. Open Resource Usage

    Under Extra Features, click Resource Usage. This plugin is in English in the Dutch panel as well. Under Account total you see whether your website had problems in the past 24 hours.

    Resource Usage in DirectAdmin, with Account total and the DETAILS button
    Resource Usage › Dashboard
  3. View the details

    Click DETAILS. Under Current usage you see the usage (Usage) and the limit (Limit) of your package for each resource.

  4. Choose a period

    Under Timeframe, choose a period, such as Last hour, Today, Yesterday or a Date range. The charts below show the average usage, the limit and the number of times the limit was reached (Faults) for each resource. This shows you at which moments your package ran into a limit.

resourcewhat it is
SPEED Usageprocessing power (CPU)
Physical Memory Usagememory
I/O Usagehow much data per second goes to and from the disk
IOPSthe number of read and write operations per second
Entry Processes and NPROCthe number of concurrent processes

If your package reaches a limit, you receive an email about it. According to xYnta, this notification is on for every package; in Resource Usage you see it under Options as Notify me when I hit my resource limits, ticked and not something you can change yourself.

Analysing the cause

First ask yourself these questions:

Solution: a plugin or script

Disable all plugins temporarily and then enable them again one by one. If the usage rises again with a particular plugin, that plugin is the cause: update it, replace it with an alternative or contact its developer.

Solution: a cron job

Disable your cron jobs temporarily and check whether the problem disappears (see Setting up a cron job on your hosting package). For WordPress it is often better to disable the built-in WP_CRON and replace it with a cron job on the server; then not every visitor starts the cron. See Disabling wp-cron.php for better performance.

Solution: a poorly optimised website

  • Limit the number of plugins: the fewer, the better.
  • Turn on caching, such as LiteSpeed Cache, Redis and Opcache (see Enabling Redis caching).
  • Use a PHP version that still receives security updates (see Changing the PHP version). Newer versions are faster and more secure.
  • Optimise the database: remove old revisions, transients and unused tables.
  • Fix the errors that are in your error log.

Solution: a traffic spike from one IP address

If your website is being flooded with traffic from a suspicious IP address, block that address with these lines in the .htaccess file in the main directory of your website (domains/yourdomain.nl/public_html). Add them to the existing file:

order allow,deny
deny from 203.0.113.10
allow from all

Replace 203.0.113.10 with the IP address you want to block. To block more addresses, add an extra deny from line for each address. That address then gets the error message 403 (Forbidden). You edit the file with the file manager (see Managing files).

Video

Understanding Resource UsageYouTube