How to: Fix "508 Resource Limit Reached" on WHM/cPanel with CloudLinux

Follow

CloudLinux has a feature called 'CloudLinux LVE Manager' which allows you to set resource limits for each cPanel account on your server.

The settings for the CloudLinux LVE Manager feature can be found in WHM, under the 'Server Configuration' section.

The error message 508 Resource Limit Reached means that one of the LVE limits has been hit.

To determine which limit has been hit, we can use the CloudLinux LVE Manager section in WHM.

The steps are as follows:

  1. Log into your WHM control panel.
  2. Open the CloudLinux LVE Manager settings, this can be found under 'Server Configuration' in the left hand side column.
  3. Click the "Statistics" button
  4. Set the 'Timeframe' - in this example I'm checking faults for the last 7 days.
  5. Find your domain in the list, then click the 'Graph' button to the right, under the 'View' column.
  6. Scroll down to the 'Faults' graph. Compare the colour of the faults in the graph to the key on the right of the graph. In this example, you can see that the CPU limit is being hit.
  7. Now that we know that the CPU limit is the culprit, we can increase the CPU limit for this account. To do this, you can use the 'Users' tab.
  8. Find the domain that is faulting in the list, then click the 'Edit' button on the right hand side, under the 'Actions' column. It looks like a pencil icon.
  9. In this example, we would increase the 'Speed' limit (which is CPU limit) from 100% to 200%, and then click 'Save'. (Note: 100% Speed limit means 100% of 1x CPU core. If your server has 8 CPU cores for example, then a setting of 100% means that the account can use 1/8 of the total CPU power, which would equate to 12.5% of the maximum CPU speed).

    Important Note: It is always better to disable VMEM limits (set them to 0): they are deprecated in CloudLinux 6/7 systems and are causing unexpected issues.

    Before:


    After:

  10. Check the graphs again after testing your site to see if the limit is suitable. Be wary of increasing each limit too high, as it could affect the overall stability of your server.

    CloudLinux recommends the following guidelines for LVE limits:

    Typical Hosting Account

     

    SPEED=100%

    PMEM=512MB

    VMEM=0

    IO=1024KB/s

    IOPS=1024

    NPROC=100

    EP=20

     

    High End Hosting Account

     

    SPEED=200%

    PMEM=1GB

    VMEM=0

    IO=4096KB/s

    IOPS=1024

    NPROC=100

    EP=40

    Important Note: It is always better to disable VMEM limits (set them to 0): they are deprecated in CloudLinux 6/7 systems and are causing unexpected issues.

     

    For a detailed description of the LVE limits, please see the following guide: HERE



     
Have more questions? Submit a request

Comments

Powered by Zendesk