WordPress can often run into memory issues with the web server. The WordPress Core team is constantly working on lowering memory footprints though.
There are a few reasons why you may be running into memory issues with WordPress, let’s dive into them below and discuss some potential solutions for you.
Here are some example errors you may be seeing.
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1853353 bytes) in /home/imag5621/public_html/yanikphotoschool/wp-includes/http.php on line 1027
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 143 bytes) in /home/www/web238/html/blog/wp-admin/admin-functions.php on line 1618
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 19456 bytes) in wp-admin/includes/theme.php on line 81
Exhausted Memory Solutions
There are a number of things we’re going to review that may work for you.
1. Raise the memory limit for PHP in your
2. If you have access to your server’s
php.ini file, try adjusting the
memory_limit = 64M;
3. If you don’t have access to your server’s
php.ini file, try adjusting the memory limit inside your
php_value memory_limit 64M
One of these solutions will generally fix your WordPress memory issues.
One thing to make sure is that you are running some sort of caching plugin. We recommend and use W3 Total Cache here on WPForce.com, and we feel it’s the most effective. We use Apache, FastCGI, APC, and Memcached for all of the caching.