"Allowed Memory Size Exhausted" in WordPress: What It Means and What to Do
“Allowed memory size exhausted” means a WordPress process tried to use more PHP memory than the server allows. It is caused by heavy plugins, large imports, image processing or poorly written code, and the proper fix finds what is using the memory rather than only raising the limit.
What PHP memory is
Each request WordPress handles gets a limited amount of memory to work with. When a task, such as generating a complex page or processing a large image, needs more than that allowance, PHP stops and reports the error, often naming a file and the number of bytes it tried to use.
Common causes
| Cause | Typical sign |
|---|---|
| Heavy page builder pages | Error when editing or loading complex pages |
| Large image uploads or regeneration | Error during media tasks |
| Large imports or exports | Error during imports |
| Backup or security plugins scanning | Error during scheduled tasks |
| A plugin with a memory leak | Error that grows over time |
| A low host limit | Frequent errors with modest sites |
Not sure what is going on with your website?
Tell us what you are seeing and we will outline the next step before any chargeable work.
Raising the limit: when it is reasonable
Some sites simply need more memory, and raising the limit within what the host allows is a legitimate step. Do it deliberately, with a backup, and watch whether the error returns. If it does, the underlying cause still needs attention.
Finding what is consuming memory
- Read the error message for the file and plugin named
- Check whether it happens during a specific task or on a specific page
- Test by disabling the suspected plugin on a staging copy
- Review scheduled tasks that run heavy jobs
- Check the host’s resource graphs where available
Memory and hosting limits
Hosts cap memory per request and per account. Cheap plans often have low caps. If your site legitimately needs more than the plan allows, an upgrade or a move to a better environment is the answer. See whether hosting affects speed.
Avoiding future errors
- Keep plugins lean and updated
- Optimise images before upload
- Schedule heavy jobs for quiet times
- Use caching to reduce repeated heavy work
- Monitor resource use
Memory leaks and runaway plugins
Some plugins use more and more memory the longer a task runs, or loop through huge amounts of data in one go. On small test sites they seem fine, but on a real site with thousands of products or images they exhaust memory. If the error appears during a particular task, such as a backup, an import or a scan, the culprit is probably the plugin performing it. Options include running the task at a quieter time, splitting it into smaller batches, replacing the plugin or giving the task more memory within what the host allows.
Working with your host on limits
Hosts set both a per-request memory limit and overall account limits. Raising the WordPress setting beyond the host’s cap has no effect, and a persistently low cap on a busy site is a sign that the hosting plan is too small. Ask the host what limits apply, whether they can be raised and what the next plan up offers. Pairing that information with a review of heavy plugins gives you options: fix the code, raise the limit or upgrade the environment, and you can choose with evidence instead of guessing.
How we help
We find the cause, adjust limits where appropriate and fix the underlying plugin or configuration. See WordPress repair and speed optimisation, or contact us.
Want this looked after for you?
WP Mate maintenance plans cover managed updates, daily offsite backups, security scanning and 24/7 uptime monitoring.
Not sure what's wrong? Tell us and we'll outline the next step.
Services related to this guide
WordPress repair
Broken website? We investigate the cause and fix it safely.Get a Repair Quote →
Speed optimisation
Find what is slowing your website and fix it safely.Request a Speed Review →
Talk to WP Mate
Not sure which service fits? Ask us and we will point you the right way.Contact us →
Related guides
Frequently asked questions
What memory limit should WordPress have?
Many sites run well with a moderate limit. Page builders and stores often need more. The right value depends on the site and the host.
Can I change it myself?
Often yes in configuration or the host panel, but it should follow a backup and respect the host’s cap.
Does this error mean my host is bad?
Not necessarily, but a very low limit on a busy site is a sign the plan may be too small.
Ready to get your website sorted?
Based in Warrnambool, Victoria, helping Australian businesses online. Tell us what is happening.
Tell your mate what's going wrong.
Send us a few details and we’ll work out the next step. Please don’t include passwords or payment details.
- Australian support in plain English
- Clear scope and next steps before chargeable work
- Backup and recovery plan before live changes
