Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix the "508 Resource Limit is reached" error in WordPress?

508 Resource Limit is reached - Wordpress

This error occurs again and again, and I can't post a single post without seeing this error:

The website is temporarily unable to service your request as it exceeded resource limit. Please try again later.

enter image description here

How can I fix this problem?

like image 228
bhaskar Avatar asked Nov 18 '13 04:11

bhaskar


People also ask

How do I fix resource limit reached in Wordpress?

The first thing you can do to fix a resource limit error is to check your resource usage. Be sure to view server activity logs too. That'll help in identifying the root cause of the problem. If you're a Kinsta customer, then you can view resource usage and activity logs quite easily.

How do I bypass error 508?

How to Fix a 508 Error. In general, it's a pretty easy fix. As always, if you're a user who gets this error, we highly suggest reloading the page with CTRL/CMD – Shift – R to bypass the cache and then empty your own browser cache to make sure things aren't hanging up on your end.

What does it mean when it says resource limit is reached?

If you see a "Resource Limit Reached" error message in the browser window for your website, it typically means your account is constantly exceeding the resources assigned to it - these can include CPU usage, RAM usage, or Entry Processes (the number of concurrent processes running under your cPanel account).

What is a 508 error message?

The HyperText Transfer Protocol (HTTP) 508 Loop Detected response status code may be given in the context of the Web Distributed Authoring and Versioning (WebDAV) protocol. It indicates that the server terminated an operation because it encountered an infinite loop while processing a request with "Depth: infinity".


3 Answers

Actually it happens when the number of processes exceeds the limits set by the hosting provider.

To avoid either we need to enhance the capacity by hosting providers or we need to check in the code whether any process takes longer time (like background tasks).

like image 176
AjayR Avatar answered Sep 25 '22 08:09

AjayR


Your server is imposing some resource limit that your site is hitting. This is usually RAM, CPU, or INODES.

Ask your server administrator what the limits are and what it is you are hitting to solve.

like image 34
Sajan Parikh Avatar answered Sep 23 '22 08:09

Sajan Parikh


I've already encountered this error and this is the best solution I've found:

In your root folder (probably called public_html)please add this code to your .htaccess file...

REPLACE the 00.00.00.000 with YOUR IP address. If you don't know your IP address buzz over to What Is My IP - The IP Address Experts Since 1999

#By Marky WP Root Directory to deny entry for WP-Login & xmlrpc
<Files wp-login.php>
        order deny,allow
        deny from all
        allow from 00.00.00.000
    </Files>
<Files xmlrpc.php>
        order deny,allow
        deny from all
        allow from 00.00.00.000
    </Files>

In your wp-admin folder please add this code to your .htaccess file...

#By Marky WP Admin Folder to deny entry for entire admin folder
order deny,allow
deny from all
allow from 00.00.00.000
<Files index.php>
        order deny,allow
        deny from all
        allow from 00.00.00.000
    </Files>

From: https://www.quora.com/I-am-using-shared-hosting-and-my-I-O-usage-is-full-after-every-minute-What-is-this-I-O-usage-in-cPanel-How-can-I-reduce-it

like image 33
Joy Lab Avatar answered Sep 23 '22 08:09

Joy Lab