"Resource limit reached" (508) and what to do
If visitors see "Resource Limit Is Reached", your site briefly used more than its share of the server. It's your site's limit only. Other customers aren't affected, and yours isn't affected by theirs.
What you see
Resource Limit Is Reached
The website is temporarily unable to service your request as it exceeded resource limit.
Please try again later.
The wording can vary slightly. The browser shows HTTP status 508. Some visitors may see a 503 or a blank page. See 503 Service Unavailable and 508 Resource Limit for the troubleshooting-style version.
Why it happens
Your hosting plan includes a share of CPU, memory, and simultaneous PHP requests. Hit any one and extra requests are refused until usage falls. Typical causes:
- Many visitors at once and no page caching
- A bot or attack making hundreds of requests
- A slow plugin, or an expensive database query
- A backup or import running in the day
- Malware sending spam or mining coins
Find which limit
- Go to Account → Hosting → your site → Performance and click Usage history and limit hits. See Read your Resource usage page.
- Look at Limit hits for the last 24 hours, and at the graphs under Usage over time on Performance. Find the one where usage reaches the limit line.
- Match the time to what was happening. A sale, a newsletter, a backup, a plugin update.
| Limit hit | Most likely cause | First fix |
|---|---|---|
| Entry processes | Many requests at the same moment | Caching, and block bad bots in Security → Bot protection |
| CPU | Heavy pages built on each visit | Caching, plugin cleanup, newer PHP |
| Memory | A script that uses a lot | Find the plugin or import |
| I/O or IOPS | Backups, file scans, big imports | Move jobs to night |
| Number of processes | Cron jobs or scripts piling up | Fix the stuck script |
Fix it in order
- Turn on caching. For WordPress, install and set up LiteSpeed Cache. This is the biggest single help. See LiteSpeed Cache explained.
- Check the access log for bots. Many requests per second from one address, or to
wp-login.phporxmlrpc.php, are an attack. See Brute-force and login protection and Block visitors by IP address. - Update PHP. Newer versions use less CPU. See PHP version and OPcache for speed.
- Find the slow plugin. Turn plugins off one at a time on a staging copy. See Find a plugin causing problems.
- Move heavy jobs. Run backups, imports, and bulk image tools at night.
- Scan for malware. See Imunify360.
- Check cron jobs. A cron job that runs every minute and takes longer than a minute piles up. See Schedule tasks with cron jobs.
Reduce WordPress background load
WordPress runs wp-cron.php on visits. On busy sites, that causes extra work. A common fix is to turn it off in wp-config.php and run a real cron job every 5 to 15 minutes.
define('DISABLE_WP_CRON', true);
*/10 * * * * /usr/local/bin/php /home/youraccount/public_html/wp-cron.php > /dev/null 2>&1
/usr/local/bin/php runs the account default PHP version, not a site's own choice under Performance → Choose PHP for each site. See Schedule tasks with cron jobs.
When to upgrade
If the graphs touch the limit during ordinary traffic after steps 1 to 6, your site has outgrown the plan. Compare plans. See Which plan is right for you? and Upgrade or downgrade your plan.
When to contact us
Open a request if limits are hit and you can't see why. Include the time of the problem and a screenshot of the graph. See What to include when you ask for help.
Still stuck? Ask us and we'll walk you through it.
