HostingReview Lab
Open navigation

WordPress Memory Limit vs. Server RAM: What Each Number Means

Guides / Hosting limits

Documentation checked: October 5, 2026. This is a documentation-based explanation and HRL troubleshooting checklist. We have not load-tested these providers or measured their capacity.

A 256 MB WordPress memory setting is not a claim that the entire hosting server needs only 256 MB of RAM. Application limits and server capacity operate at different levels. Identify which number you are reading and which task is failing before changing either.

Illustrated guide: WordPress Memory Limit vs. Server RAM: What Each Number Means

Separate the memory numbers

Memory terms to record separately
TermMeaning to checkWhat it does not prove
PHP memory_limitMaximum allocation permitted for a PHP scriptTotal RAM dedicated to the website
WP_MEMORY_LIMITWordPress’s requested memory setting for ordinary frontend workThat the host accepts a higher requested value
WP_MAX_MEMORY_LIMITWordPress’s requested setting for supported higher-memory contextsA global increase to the server’s physical memory
PHP memory poolA provider-specific allocation across PHP processes or threadsThe same allocation model at every host
Server or account RAMThe memory capacity and scope described by the hostThat all of it is available to one PHP request

The PHP manual defines memory_limit as a cap on what a script may allocate. WordPress’s PHP optimization guide describes WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT as requested settings. Confirm the effective runtime value and the hosting restrictions, rather than assuming a line in a configuration file overrides the provider’s controls.

Record the task and the actual error

Does the failure happen while loading a public page, saving an editor screen, uploading media, importing products or running a scheduled job? Record the timestamp, PHP version, affected environment and exact error text, with private details removed before sharing.

An “allowed memory size exhausted” error is different evidence from a host reporting that the account has exhausted its RAM allocation. A timeout, database error or slow page alone does not identify memory as the cause. Correlate the incident with the host’s resource readings and the application operation.

HRL recommends checking whether the issue started after an update, import, new integration or workload change. Identify the operation responsible with the host or developer; the file named in an error may be where the allocation failed, rather than the original cause.

Check the environment that actually failed

Record the effective PHP setting for the relevant web or command-line process. Ask whether the host applies different configuration or restrictions to those execution contexts. Check the WordPress setting alongside it and confirm the allowed change method.

The PHP manual also documents max_memory_limit for PHP 8.5 and later, which can cap how high memory_limit may be configured. This is version-dependent; it is not an instruction to add that setting on an older version.

Keep configuration reports private and share only the necessary values. A public diagnostic page can expose more details than a support request needs.

Consider concurrency before increasing a setting

Kinsta’s performance documentation describes distributing a PHP pool between thread count and memory per thread. In its configurable model, increasing memory per thread while keeping the pool unchanged reduces the available thread count. That is one provider’s model; verify how your plan allocates resources.

Increasing a permitted script allocation does not add physical RAM to a server. Multiple simultaneous tasks and other services still need capacity. Read PHP workers and concurrency and ask the host which tradeoffs apply to the proposed change. Avoid treating a larger setting as a guaranteed speed improvement.

If the error began after a plugin change, use the controlled plugin conflict test before assuming the host needs more memory. A planned runtime change also needs the PHP upgrade checks; changing versions and increasing memory together makes the result harder to explain.

Make a supported change and verify it

HRL recommends preserving the current configuration and a recovery route, then using the host’s supported method for one justified change. Test a substantial change in staging where appropriate. Confirm that the effective value changed and repeat the failing operation.

Also check representative public pages, administrator actions and important forms or checkout flows. If the host cannot raise the limit or required tasks still exceed the supported capacity, compare a suitable plan. If the operation grows unexpectedly, investigate the application rather than repeatedly raising limits.

Identify which memory number failed

A hypothetical import can exhaust its effective per-script memory limit while the account still has unused overall RAM. Raising the WordPress requested setting is useful only if the host permits and applies it to that runtime. Conversely, increasing a per-script limit does not supply more account RAM for simultaneous requests. Record the exact error and effective setting before selecting a configuration change or larger plan.

Use requirements as a purchase check

Compare current application requirements, the plan’s effective PHP limit and its wider resource allocation. The WooCommerce requirements guide separates compatibility from capacity; the database guide covers other independent constraints.

Keep a dated record of the confirmed settings, measured incident and accepted workflow. HRL does not recommend one memory setting for every WordPress installation. Choose capacity for the tasks the website must complete and verify the result.