why are there many httpd process on the machine while i only started one apache httpd service?
7,883
Solution 1
You started the parent, and the parent started the worker children.
Solution 2
These are child processes, the number of which is controlled by the startservers directive to the apache prefork or worker modules.
Solution 3
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
Related videos on Youtube
Author by
Viktor
http://www.chinatech.us, lots of chinese tech, stock and company news
Updated on September 18, 2022Comments
-
Viktor over 1 year
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.
-
cherrun about 12 yearsSounds similar to this thread: serverfault.com/questions/272296/…
-