This article is provided as a courtesy to our customers, to help them understand why Resource Limit is Reached issue happens, and probable ways to deal with this issue. Hope you will find it helpful.
Let's get started.
Why Resource Limit is Reached issue happens?
When you get Resource Limit is Reached error message while visiting your website, This means that your website is hitting one or more of the hosting account's resource limits (CPU, memory, etc.).
To ensure a great experience for all customers, we EyHost use the 'CloudLinux' system to ensure that no single hosting account can monopolize server resources to the detriment of any other.
If your site is consistently hitting its resource limits and showing Resource Limit is Reached error message, then here are some probable ways that can help you to deal with this issue.
Keep your CMS Updated - If you using any CMS (WordPress, Joomla, etc), then always keep them updated to the latest version.
Use the latest version of PHP - If your website is using PHP, then always ust the latest version of PHP.
Make sure you are running the latest stable version of your scripts, plugins and/or any themes - Often out-dated versions are searched for by bots which attempt to exploit out-dated scripts with security holes.
Fix badly written scripts & Optimize your website - scripts and plugins that are outdated or incorrectly coded can malfunction and cause loops. Even a few concurrent requests to such scripts can push the website over its resource limits.
So, find out and fix the badly written scripts, keep your site's themes & plugins updated. Also, delete unnecessary themes, plugins, and other unnecessary files as well.
Regularly check your website's error_log file - You can also check the document root of your websites for any error_log files, if you find an error_log file, you should take a look at the recent entries and fix any errors that are reported as soon as possible.
Keep optimizing your database tables - If your sites are MySQL driven, via PHPMyAdmin is also a good way to keep things running smoothly. Prune out data that is no longer needed and optimize the table.
Use Captcha in login & comment forms - On multiple login forms and also in the comment form always use Captcha.
Stop frequently running Cron jobs (if any) - Too frequently running cron job can also overload your resource usages. So check them and make sure it doesn't runs too frequently.
Use Cloudflare - It can be easily enabled via your hosting control panel. With CloudFlare your static content is placed on a network of web servers to not only deliver static files faster but can act as an additional layer of security to help mitigate attacks on your website.
If you are using WordPress, then this problem is common due to the wp-login.php attack. You can protect the site against this by the following steps:
(a) Don’t use the ‘admin’ username
(b) Use a strong and complex password.
(c) Insert this code in the .htaccess file to lockdown error pages.
ErrorDocument 401 default
Still need more resources?
By performing all those steps, still if you're unable to reduce your account's resource usage and the Resource Limit is Reached issue is occurring continuously then you really need an upgrade.You can upgrade the single cPanel to any VPS, Business Hosting package, or Dedicated server or any higher available resource allocated to EyHost package.