PHP and Memory Exhaustion Print

  • phpversionsconfiguration, php, plugins, errors, backup, guide, howto, solution
  • 0

Running out of memory.

THE ERROR

Allowed memory size exhausted, naming the limit and the file.

WHAT IT MEANS

One script tried to use more memory than permitted.

TWO POSSIBLE CAUSES

The limit is genuinely too low for what you are doing Something is consuming memory it should not

WHICH IS IT

If it happens during a large import or backup, the limit may genuinely need raising.

If it happens on an ordinary page load, something is wrong.

WHAT CONSUMES MEMORY UNEXPECTEDLY

Loading an entire large dataset at once An unbounded query A plugin processing large images An infinite loop

THE FILE NAMED IN THE ERROR

Identifies the responsible component.

If the same plugin appears repeatedly, replace it.

WHAT TO DO

Raise the limit modestly, if the operation is legitimate Investigate, if it happens on ordinary pages

WHAT NOT TO DO

Keep raising the limit indefinitely.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot