Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Drupal on a news site that has a lot of different View blocks on the front page (~5 total, all cached). In trying to reduce the memory footprint of the site, I've checked out source from SVN to a local development install to try and convert some of those blocks into more optimized code.

Here's the weird thing. Devel module lists memory consumption at 50mb on the Production site (Running Nginx, PHP 5.2.17, XCache and Zend Optimizer.) but only 14mb on my development site (Running Apache2, PHP 5.2.13 and XCache). These are nearly-identical versions of the same site — frankly, the Production site should use even less memory as I've disabled some of the modules running on the Dev site.

Any idea why this might be the case?

share|improve this question

migrated from Oct 8 '12 at 1:53

This question came from our site for Drupal developers and administrators.

Probably also worth noting that I had the same issue when migrating the site from one webhost to another — the site was running at 35-40mb on the first webhost and that bounced up to the present consumption of ~50mb on the current webhost. – aendrew Oct 7 '12 at 14:13
up vote 2 down vote accepted

I really sounds like the difference is between the LAMP stacks and not the site itself. I suspect that your production server has more PHP options installed/enabled.

share|improve this answer
The PHP module loads seem pretty similar. I agree it's probably the LAMP stack and not a code-related thing. Think the fact the production webspace runs FastCGI has anything to do with it? – aendrew Oct 7 '12 at 17:29
Not really sure. You may want to flag and ask that this be moved to ServerFault. You may get better answers there. – MPD Oct 7 '12 at 18:28
Yeah, I was thinking ServerFault might've been a better place to ask shortly after I posted the question. Will do that. Thanks! – aendrew Oct 7 '12 at 18:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.