Skip to content
ONDI

← All terms

Settings

WP_MEMORY_LIMIT

The setting that caps how much memory WordPress can use. When a lack of memory is the cause, try raising it to 128M–256M.

WP_MEMORY_LIMIT is the setting that caps how much memory WordPress can use at once. Memory is like a work desk: just as a small desk leaves no room to spread out a big job, a site with many or heavy plugins can run out of memory and throw errors. You write this value into wp-config.php, in megabytes marked with an M, such as 128M or 256M.

Watch out This is a different setting from PHP's own memory_limit. On some servers PHP has its own cap, and however high you set it in WordPress, it cannot use more than that. If raising the value changes nothing, check the server's PHP settings as well. Also, removing the cap entirely lets a misbehaving program use up the server's resources, so raise it only as much as you need, and look for plugins that use a lot of memory.

Source: WordPress.org, “Editing wp-config.php” · WordPress.org, “Common WordPress Errors” (checked 2026-10-26)

See also

A typo here, a clumsy button there.

This site is still being polished. Spot something? Tell us — we’ll fix it and send a small thank-you gift.

🎁 Thank-you gift