A pgrep httpd yeilds 9 pids:
1624
1651
1652
1653
1654
1655
1656
1657
1658
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.
ps axfuto 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 at 20:55