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

On my local dev machine (Ubuntu 10.10) a web application seems to consume approximately 10Mb of memory (according to top). This is Apache2, pre fork, php5.3

On my server which is the same basic setup as my local dev machine, apache is consuming approximately 30Mb per processes (via top).

I cant think of any modules that production has that my local copy doesn't (php or apache). The only difference is that production is a lot busier than local (obviously) but I didn't think that would really make such a difference.

My question is, what can I do to troubleshoot this and work out why apache2/php is using so much ram on production per apache process?

share|improve this question

You could start by running phpinfo() on both machines, which will list all Apache modules and PHP extensions installed on both, as well as possibly relevant PHP or Apache configuration options.

You also didn't mention which OS your server uses. Could PHP or Apache be statically compiled there instead or something? Or could you be misinterpreting the columns - including memory that is shared or something?

share|improve this answer

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.