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

A pgrep httpd yeilds 9 pids:


If I kill the httpd process with the first pid( here 1624 ) all the httpd process gets killed.

Although if kill the processes with pid's other than the first one, only that process gets killed. And as soon as the number of httpd processes gets lower than 6, It will spawn httpd processes and the number of httpd process is maintained at constant 6.

This does not happen when I manually start httpd. only one process getd created.

  • why is the above behaviour?
  • Is httpd getting started as thread based?

Also I am running httpd on Fedora 15 on a 6 core processor.

And I have not changed anything in /etc/sysconfig/httpd every line in /etc/sysconfig/httpd is commented.

share|improve this question
You can use ps axfu to see which processes are the parent and the children. I suspect that PID 1624 was the parent process and others are the threads spawned by your chosen MPM. – Starfish Jan 13 '12 at 20:55
up vote 6 down vote accepted

The behavior depends on which MPM you're using, but yes, it's expected; these are worker processes. Look for the StartServers directive in your configuration.

share|improve this answer

When you start httpd via the service or /etc/init.d/httpd, it reads /etc/sysconfig/httpd, if HTTPD is not changed, it starts the prefork model. When you are starting it by hand, you are probably starting the worker based model. If you look it /etc/httpd/conf/httpd.conf and look for prefork you will find the sections related to either model. StartServers says how many processes to load.

share|improve this answer
Thanks. BTW the Test Page isn't yet solved :(. – ThinkingMonkey Jan 13 '12 at 19:40

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.