PHP out of memory
-
Recently my wordpress site has been getting intermittent out of memory errors, like the following:
Fatal error: Out of memory (allocated 64487424) (tried to allocate 44 bytes) in /homepages/37/d503644658/htdocs/public_html/rants/wp-includes/wp-db.php on line 1775
Often, simply reloading the page will cause the out of memory condition to temporarily go away, and I can use the site, but I want to up my memory allocation and stop getting these errors entirely.
I am self-hosting my wp site with 1and1, and I think I found the settings for PHP and it says that my PHP.INI file has a memory_limit of 81M set, which should be plenty. But when I’m in the wp-admin area of my site, wordpress reports that it has a memory_limit of 40M, and when a page does render, it is consuming ~38M.
Where do I need to look to find and change this limit? What should I increase to? Is it safe to use the full 81M allowed by my 1and1 hosting package, or should I select a lesser amount, like 64M?
- The topic ‘PHP out of memory’ is closed to new replies.