Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

on a linux machine with apache installed, i did a search for httpd by ps -ef | grep httpd,

i saw about 10 httpd processes, why is that?

myuser  14732     1  0 Jan12 ?        00:00:10 /home/myuser/webserver/bin/httpd -k start
myuser  14736 14732  0 Jan12 ?        00:00:00 /home/myuser/webserver/bin/httpd -k start
myuser  31309 14732  0 Jan14 ?        00:00:00 /home/myuser/webserver/bin/httpd -k start
myuser  31313 14732  0 Jan14 ?        00:00:00 /home/myuser/webserver/bin/httpd -k start

thx.

share|improve this question
    
Sounds similar to this thread: serverfault.com/questions/272296/… –  cherrun Mar 1 '12 at 8:39

3 Answers 3

up vote 4 down vote accepted

You started the parent, and the parent started the worker children.

share|improve this answer

You might want to read up Apaches Documentation on MPM. This is the definitive guide. I'd also recommend reading up on how Unix Daemons work in general.

Long story (naive) and short:

  • You have a "controlling" process
  • Each "worker" process handles a client
share|improve this answer
    
thx for helpful comments –  hetaoblog Mar 1 '12 at 12:42

These are child processes, the number of which is controlled by the startservers directive to the apache prefork or worker modules.

share|improve this answer

Your Answer

 
discard

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.