I have been running a drupal site for months. Just overnight, after not having done anything in particular, I started getting the message that:
03-Feb-2008 04:48:55] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 350011 bytes) in /home/nucleusl/public_html/includes/database.mysql.inc on line 380
And my site was down after that until I raised the memory limit of PHP. Why would Drupal need more than 32MB of memory?!?!? My site is no Yahoo and doesn't receive much traffic. How can I determine what is causing this problem? The file causing the fatal error was not always mysql.inc, sometimes it was menu.inc. Please help; I am alarmed at the memory requirements to display a page of HTML.
Thank you.
Comments
Do you have many modules
Do you have many modules enabled - if so that 32mb is going to run out pretty quickly (some people have like 65 modules enabled!).
We have plenty of sites with 64 and even up to 256mb.
One module I have used with great success is the Boost module, check it out, it writes pages as static files to the server.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.