Problem

WordPress Allowed Memory Size Exhausted

Diagnose WordPress memory exhaustion by identifying the request, plugin, import, image operation, or background job that consumed the memory limit.

Symptom

Overview

A PHP process reached its configured memory limit before WordPress completed the request.

Who this is for: WordPress owners seeing allowed memory size exhausted errors in wp-admin, logs, imports, or front-end requests.

Diagnosis

What to check before changing the site

Quick Diagnosis

The useful clue is the file and request that exhausted memory, not the memory number alone.

Fix Strategy

Treat memory increases as capacity changes, not a substitute for finding a runaway plugin or oversized job.

Common High-Memory Jobs

Imports, image regeneration, backup packaging, product exports, security scans, and report generation can legitimately need more memory. Test those workflows separately from ordinary page loads.

Verification Boundary

A higher limit is acceptable only when the workload is expected and bounded. If memory keeps rising on small requests, investigate plugin code, recursion, or database query volume before adding more capacity.

WordPress ErrorsSeverity: MediumLast reviewed: 2026-09-16

Diagnosis

Symptoms, causes, checks, and fixes

Symptoms

  • Logs include Allowed memory size exhausted.
  • Admin screens, imports, image processing, or checkout actions fail.
  • Increasing traffic or large jobs may make the issue intermittent.

Most Common Causes

  • Large imports or exports.
  • Heavy plugin queries.
  • Image processing.
  • Low PHP memory limit.
  • Recursive or failing code.

How To Confirm The Cause

  • Identify the exact URL or job in the error log.
  • Check whether the failure started after a plugin update or import.
  • Compare PHP memory limits between CLI, web, and cron contexts.

Fixes

  • Stop or split the oversized job.
  • Disable the component causing runaway memory usage.
  • Raise the memory limit only after confirming the workload is legitimate.

How To Verify The Fix

  • Repeat the original action with logging enabled.
  • Confirm the memory error no longer appears.
  • Review performance after the change.

When To Contact Support

Contact hosting support if memory settings cannot be changed or the host enforces a lower limit than WordPress expects.

References

Official references

Editorial trust

Published
Updated
Content type
Problems
Review editorial policy

Problem, cause, fix, verify

Problem

A PHP process reached its configured memory limit before WordPress completed the request.

Audience

WordPress owners seeing allowed memory size exhausted errors in wp-admin, logs, imports, or front-end requests.

First check

The useful clue is the file and request that exhausted memory, not the memory number alone.

Verify

A higher limit is acceptable only when the workload is expected and bounded. If memory keeps rising on small requests, investigate plugin code, recursion, or database query volume before adding more capacity.

Strictly necessary

Always active

Required for security, requested SiteCheck workflows, and remembering your cookie choice.