I'm running CentOS 64 bit, and jsut found out I am running prefork MPM on my dual quad xeon. I was told worker will give me lower memory usage, and higher performance, since I run a very high traffic website.

If this is true, how do I do it?

Thank you

link|improve this question

64% accept rate
feedback

2 Answers

up vote 3 down vote accepted

Edit: /etc/sysconfig/httpd

Uncomment:

HTTPD=/usr/sbin/httpd.worker

Restart, voila!

link|improve this answer
feedback

It might be true, the only real way to find out is to test.

This is a compile time option so that would require a recompile of apache. Download the srpm, install it, modify the source, create a patch file, apply the patch file in the .spec file, rebuild the RPM, install the RPM. (That's a very quick description for a somewhat longer process.) Here is a more complete example.

Or you could just download the source, compile it, and install it. Which might be a better choice for testing purposes. I'd go the extra mile and create the RPM. You always want to create a re-producible environment, especially in a very high traffic situation.

link|improve this answer
Worker MPM is available in CentOS and Debian/Ubuntu without recompiling. – Rafiq Maniar Jan 11 '11 at 9:50
feedback

Your Answer

 
or
required, but never shown

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