I'm running Drupal 5.11 on a dedicated server, and am having memory issues. I was until yesterday running my site on a server with 512MB RAM, and was frequently getting spikes which would use all available RAM and 1.5GB swap. A reboot would bring the site back up, but it wouldn't be too long before it locked up again.
Since my site has 39 contributed modules installed (they're all necessary for the functionality that I need - I have weeded out everything else), and a few thousand nodes, I thought that I just need a bit more horsepower. So today I have moved the site to a quad core Xeon with 4GB RAM.
However, within a few hours, the 'top' command reveals that 3GB RAM is being used. Something, somewhere, is munching up a lot of RAM, and I'd like to find out what it is. I suspect that one of the contributed modules has a memory leak, and I need to find out which one.
I have installed the devel module, but can't find a way of reporting memory usage of individual modules. Can anyone suggest a plan of action?
Many thanks,
Tom
Comments
PHP version
I should probably add that I'm running PHP 5.1.2, if that's relevant... :-)
Module updates
I've just updated Gmap, Location and Views to their latest versions (I know these modules are quite memory hungry, and the versions were a bit old), and rebooted the server. This time, I have 3.6GB free, which is great.
However, memory use is creeping up quite rapidly. I'll keep an eye on it all day, and see how it goes. I'd still love to be able to get a breakdown of module use, and would be grateful for any tips on how I might do this!
any luck?
Hi wessex, did everything work out for you here? I'm trying to track down my memory hogging problems. I'm using 1.3GB of RAM, but that seems crazy as my site doesn't receive THAT much traffic.
Not yet :-( I'm resorting to
Not yet :-(
I'm resorting to upgrading modules one by one, and rebooting every 2 weeks. Less than ideal, but I don't know what else to do...
.
The first thing i would do is create a dev installation of the site and see if you still have the memory problem. If so, turn off contributed modules 1 by 1 until you find the culprit. if not, start looking at items besides drupal that differ between the 2 environments. Depending on how much time you devote to it, you should have this figured out in a day or 2.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Huge memory usage on Dreamhost VPS, how to find which module cau
Huge memory usage on Dreamhost VPS, how to find which module causes troubles ?
Hi,
I have the same problem, how can i find what is the module that uses too much memory on my dreamhost virtual private server ?
Website has a lot of traffic but no more than before and suddenly thousands of errors everyday when i haven't changed a single module, so what's wrong ?
Thanks.