Hi,
A few days after upgrading to Drupal 5.16, we started getting a bunch of random PHP memory errors like the following:
PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 30720 bytes) in /home/oursite/public_html/includes/database.mysql.inc on line 167
PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 7680 bytes) in /home/oursite/public_html/includes/bootstrap.inc on line 484
We haven't added/changed any of the contributed modules when it started happening. Looking at forum posts, it seems that we must either increase the PHP memory limit (we are currently using shared hosting), optimize the code, or disable any resource-heavy modules.
Has anybody encountered the out of memory issues after upgrading Drupal core?
Comments
Yes. It can be caused by a
Yes. It can be caused by a lot of different things. Generally, bumping memory to 32megs will solve these issues.
--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.zivtech.com
The memory limit currently
The memory limit currently set is 128MB. Should that be enough? We are currently on shared hosting & that's the max.
I had this problem. I believe
I had this problem. I believe it was a memory leak in apache.
Is it something the shared
Is it something the shared hosting provider can fix?
Originally, when I contacted them, they said that we should either optimize our code or upgrade to a VPS account. It didn't seem to be an issue they could fix on their end.
if it is indeed a memory leak
if it is indeed a memory leak in apache (which it may not be), then you should demand whoever runs your server fix it. That is, after all, the service they provide.
Thanks for your help. I
Thanks for your help. I contacted our web hosting provider again & it appears to have been a problem on their end.
So how do you fix an Apache Memory Leak?
Alas, I have to administer my own Apache server (in a university environment) - with minimal experience: just Google and an O'Reilly book to help me.
Do you know how they fixed the memory leak? Any pointers at all would certainly help me as I'm getting the WSOD every few days now so am just trying to address every PHP-related error in my log.
Rob
Not sure...
Hi Rob,
They did not tell me what the exact issue was. Since we are on a shared server, they said that they had made some temporary changes to mitigate some resource issues, which could have caused the PHP memory issues.
You could maybe try increasing the server's PHP memory limit, if you haven't already. Sorry I couldn't be of much help as my experience is limited as well. Good luck.