Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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've moved from the prefork MPM to the worker MPM due to a process limit I was hitting on my VPS.

However, memory usage increased after switching over (which is odd since the worker MPM is supposed to have a smaller memory footprint?). Most of them belong to php-cgi processes. Is there something I'm doing wrong?

I have around 20 sites on it, each with a different fcgi wrapper script. Could that be a reason?

share|improve this question

php-cgi processes, while being used by the Apache server, are not part of it. I suspect you are asking about reducing Apache's memory usage when it is not what is actually consuming your memory... try to investigate what else is using up memory (Apache? or PHP? or whatever?).

To answer your question about reducing memory usage of the MPM, there isn't much you can do to reduce it while keeping up with the same workload - the MPM will use whatever it needs to do its job.

You can shrink it a little by deactivating unneeded Apache modules, but that won't make such a big difference.

Maybe you have too much idle threads (SpareThreads in apache's lingo) but again, you either actually need them to properly handle spikes in incoming requests or they'll do little difference on memory consumption - unless you did something really really strange with Apache's config.

You didn't give enough information about your current configuration, memory consumption, workload to speculate more on the subject. Maybe also a look at the Apache documentation would help, did you read it before asking?

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.