WordPress memory exhausted? Try this.
If your WordPress installation is suddenly giving you an error with this message -
“Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate X bytes) in /home /Your-Username/public_html/ the particular folder on line X” this means that the memory limit has been reached for your WordPress installation either due to certain plugins consuming too much memory, or your particular webhost just didnt allocate enough memory for you. It’s a common problem for many WordPress sites.
The default memory for WordPress is something around 8 megabytes. So, some things you could do if you encounter such a problem are:
- Deactivate some plugins. Plugins that run in real time are often at fault. Try to deactivate a few and see if that works.
- Contact your host and request for your memory to be increased. I’ve heard some people saying their hosts refused to increase the memory, but mine did allow it.
- Place this code in your htaccess file, you could change it to 32 megabytes if needed -
php_value memory_limit 16M
This problem of WordPress memory exhaustion seems pretty commonplace. I didnt expect WordPress to suffer from this malady, and thought only heavy CMS applications like Joomla or Drupal had this memory exhaustion problem.




For people with a cgi version of php running, they will have to set this in the php.ini file. Nice solution!
Yep, had this problem few days ago, but now its working ok.
Great, I came across this problem in my personal blog day before and googled the problem and came to your site. Awesome information. Thanks a lot. This will do the trick i suppose. I’m still kind of new to blogging and things don’t work out well for me at times. Thanks for the useful information. Cheers
Hello!
Very Interesting post! Thank you for such interesting resource!
PS: Sorry for my bad english, I’v just started to learn this language
See you!
Your, Raiul Baztepo
Thanks for the great tip.
As soon as I saw the reference to Site Build It in the right hand column I knew this was a site I could trust.
Thank you so much! I was looking for a solution after installing skimlinks plug in. The whole site just went down. Now I’m back online thanks to you!