Resource Limit Is Reached 508 [solved] – cPanel – CloudLinux

Are you really frustrated with this warning on your website? Here we go for a solution!

Resource Limit Is Reached, cPanel with CloudLinux. This warning appears mainly in domains hosted on a CloudLinux installed server. In a CloudLinux installed server, each account has a predefined amount of resources.

The error message “508 Resource Limit Is Reached” appears when the account (domain) is constantly exceeding the resources assigned to it. This is the main difference between traditional hosting vs CloudLinux hosting.

In CloudLinux it uses LVE (Lightweight Virtualized Environments) to separate each accounts with a predefined resources. It helps a balanced hosting environment.

LVE helps to stop other users from starving your website of precious system resources, Cloudlinux pro-actively monitors resource usage, and limits account when they exceed a predefined usage limit. This would cause this error “508 Resource Limit Is Reached.”

Introduction to CloudLinux and installation guide

CloudLinux is a Linux based Operating system especially used in a shared environment which isolates each user in its own light weight virtualized environemnts (LVE) which consumes predefined amount of resources allocated for each user. That is, each user will be in a caged environment.

The resource usage of any user won’t affect the stability of another users. Each user will be allocated a specific amount of resources. If a user’s PHP script utilizes the entire resources allocated to it, then it won’t affect other users. Only that particular user will face problems related to this.

Important limiting factors:

SPEED : This directives allows you to set the CPU limit in terms of % of a single core, or as a fixed number of Hz. This is relative to one core, for example;

--speed=50% would mean 1/2 core.
--speed=100% would mean 1 core,
--speed=150% would mean 1.5 cores

VMEM (MB) : Virtual memory limit corresponds to the amount of memory processes can allocate within LVE.

PMEM (MB) : Physical memory limit corresponds to the amount of memory actually used by end customer’s processes.

EP : This is the main parameter beyond “508 Resource Limit Is Reached” problem.

NPROC : NPROC controls the total number of processes within LVE. Once the limit is reached, no new process can be created (until another one dies). When that happens fNPROC counter is incremented. Apache might return 500 or 503 errors in such case.

IO (kBps) : IOPS limits restrict the total number of read/write operations per second. When the limit is reached the read/write operations stop until current second expires.

Resource Limit Is Reached

As I stated, the parameter EP (Entry Process) controls this fact. EP is the concurrent connections to the Apache server. That means the Apache processes entering into the LVE. This is the important limiting factor. Each LVE limits the amount of EP to the Apache server to avoid a single website exhausting all resources.

If the limit is reached, the Apache module “mod_hostinglimits” won’t be able to place Apache process into that particular LVE. The server will return 508 error (Resource Limit Reached), without affecting other users on that server.

See this section : Resource allocation and monitoring using LVE – CloudLinux

You can check this from the cPanel itself : cPanel >> Logs >> Resource Usage.

How to fix this?

First, check whether the website is under any attack or not. Yep, a DoS to your website can cause this simply. Check the access log on server and find any DoS to your website. In a cPanel server the log is located under:

>> /usr/local/apache/domlogs/$USERNAME/
Or
>> /home/$USERNAME/access-logs/

In WordPress sites this problem is common due to Wp-login.php attack. You can protect the site against this. Please see the hardening steps for a WordPress site :>> WP Harden

Next, you can try disabling plugins, disabling any special features, and/or repairing your database(s). Then, you can look into optimizing your script(s). Your webmaster or the script developers should be able to assist with this.

If any of the above steps didn’t work, you may need to upgrade the EP value.

That’s it!

Also read:

CloudLinux installation
PHP selector installation

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

19 thoughts on “Resource Limit Is Reached 508 [solved] – cPanel – CloudLinux

  1. Sir I am facing 508 resource limit reached error sometime on website I tried everything but I didn’t succeed till yet I am using shared hosting please help.

  2. m using shared hosting, having just 8 sites on it, still having same issue but sites are in wordpress. what could be the perfect solution. In private windows of the browsers everything is fine. Thx fr help

  3. Hi Arun,
    It’s a great information! Anyway, i wanna know more about the CLV optimal configuration for the High end Busy websites? Eg: Daily 60K UV with 18GB Mysql,WP corporate site..
    Can you suggest optimal value that we need to use it in CL?

    Thanks in advance.

  4. Hello sir my website show 508 Insufficient Resource & in footer section this website show: “Proudly powered by LiteSpeed Web Server
    Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.”
    Is my website hacked.
    What should I do next .Pls help me.
    my domain: ucb msh.org/

    1. Not a sign of hack, Jay!
      Please ask your host to check the EP usage. Chance of attack. If the connections were genuine, ask them to increase the EP limit.

  5. I have been struggling with the same problem and solved with the help of your above suggested tips. Thanks you so much

  6. Hello sir, my websites are too slow because of this error “You have reached entry processes (number of simultaneously running php and cgi scripts, as well as cron jobs and shell sessions) limit 42 times” we are using plesk web host edition. i’m not getting proper solution for this error, What should I do next .Pls help me.

  7. I am also facing 508 resource limit reached issue.i am using shared hosting plan and using wordpress. my issue is slight strange when i am sharing my webpages on social media through sharing buttons then suddenly my I/O + ENTRY PROCESS + PHYSICAL MEMORY +VIRTUAL MEMORY + NO OF PROCESSES + CPU USAGES are increasing very high.how can i solve it? i need your suggestion.

Leave a Reply

Your email address will not be published. Required fields are marked *