WordPress memory exhausted? Try this.

By | May 24, 2007

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.

Share This:
FacebooktwitterreddittumblrFacebooktwitterreddittumblr