On shared web hosting servers, there are a finite amount of resources available for use at any given time for all users on that shared server. If at any point one customer on the shared server begins using excessive resources, it negatively impacts the website and email performance of all other customers sharing that same server. The HostPapa system administrators monitor various elements of server resources to detect excessive use.
CPU usage:
The CPU cores on a server handle tasks that your account demands of them, including running a server-side PHP script, connecting to a database, or sending emails. One user monopolizing CPU usage can cause delays for other user’s website requests. If your website uses a database or relies on scripts like PHP, increasing your account’s CPU can improve your website’s performance.
I/O (inputs/outputs) usage, similar to CPU usage, represents how much disk activity your account is using. Any task which makes use of the server’s disk drive will consume I/O. Reaching the I/O limit will cause website processes to slow down and take much longer to complete.
Physical Memory Usage (RAM) usage:
RAM is the memory allocated for your account. If this value reaches the limit you may begin to experience PHP errors (if applicable) on your website, or in very extreme cases may see a CloudLinux error page. These errors are typically only brief, and once the usage has reduced to below the limit, it will automatically clear.
Entry Process:
Entry Processes are the number of concurrent processes serving your account. Understanding what constitutes a connection is critical because it’s more complicated than simply “the number of visitors on your website.” For example, if a visitor comes to your site and your homepage takes .1 seconds to load and generates only one HTTP connection, that visitor counts as one process for .1 seconds. Even though that visitor is still “viewing your site,” they no longer count as a connection until they do something else that generates another connection, like moving to a new page.
Disk usage:
Once the CPU has processed the instructions for the tasks, it needs to read or write information to the hard drive on the server. Because the hard drive is shared by all the users on the server, excessive read or write requests to the disk can delay other user’s requests from getting fulfilled promptly.
Common causes of excessive server resource usage
Malware and hacker activity:
A hacked website can cause extra resource usage on the server because a malicious code typically tries to process multiple things for each page load on top of what an average website already does. Hacking activity is usually automated, which also leads to a higher amount of resource usage to handle the excessive amount of requests.
Intensive cron jobs:
A cron job is a scheduled task set up on a Linux machine. This lets a user run tasks on a website without having to be present to initiate the task. In most cases, a cron job that runs every minute, or even as often as every five minutes, can cause server issues. It depends on how intensive the task is that is attempting to run. If you think this may be an issue, try disabling the cron jobs temporarily to see if your resource usage decreases.
Amount of errors:
An excessive amount of errors originating from a website can harm an account’s resource usage. Common errors that can interfere with resource usage are 500, 502, 503, 504 and 508. Error codes can give you insight into what’s going on with your website’s traffic and how some visitors might not see your entire website as expected.
Too many plugins or modules on your website:
A plugin or module is a tiny bit of code that extends the default functionality of an application such as WordPress or Joomla. It’s recommended to keep the plugins running on your website to a minimum, and the number of plugins you can run before setting off server resource usage alerts varies depending on the plugin itself, how it’s coded and how often it’s used.
Before installing a plugin or module, consider researching it on Google to ensure there are no known issues with the script. It’s also advisable to always keep your plugins updated. Outdated plugins can cause excessive server usage and leave your website open to hackers and malware, resulting in server usage overages.
Large traffic surges:
Surges in traffic will happen when your website is being crawled by automated bots (i.e. search engines), your website is getting attacked with spam comments, or you have a large amount of legitimate traffic going to your website within a short duration of time. If you think your website is receiving traffic surges, you can optimize your website so that the traffic spikes use fewer server resources.
The most common ways to optimize your website include implementing a caching plugin, limiting the amount of dynamic content you have, such as plugins or modules, and ensuring the images on your website are small files sizes formatted for the internet.
Cloudflare and SiteLock’s Content Delivery Network are great ways to optimize your website content and traffic to minimize server usage.
If you need help with your HostPapa account, please open a support ticket from your dashboard.