Apache Process Tree

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


     I have a mod_perl enabled Apache installation. When I start
Apache and print the process id in the PerlHandler I see a process id

     However none of the httpd processes that run in the end have this
id :-

% ps -ef | grep httpd | grep hgarg
hgarg    14416     1  0 23:48 ?        00:00:00 httpd -f /home/hgarg/
httpd.conf -DSYSTEST -DDEV
hgarg    14417 14416  0 23:48 ?        00:00:00 httpd -f /home/hgarg/
httpd.conf -DSYSTEST -DDEV
hgarg    14418 14416  0 23:48 ?        00:00:00 httpd -f /home/hgarg/
httpd.conf -DSYSTEST -DDEV

     I tried an strace but couldn't get the exact process tree of the
processes. Also pstree didn't help because in the end 14394 doesn't
exist. I am trying to understand the relationship of 14394 to the rest
and the flow that leads to the latter. Please help.


Re: Apache Process Tree

Quoted text here. Click to load it

The process tree looks like this :-
xterm(14099) --- tcsh(14101) --- httpd(14394) --- perl(14398)

And a little later :-


Why is a new perl interpreter (14398) started. Isn't it built into
httpd with mod_perl? And why does httpd(14394) die?


Re: Apache Process Tree

On Mon, 15 Sep 2008 00:43:49 -0700, ++imanshu wrote:
Quoted text here. Click to load it

It appears that your script isn't run using mod_perl but using mod_cgi. I
think you should check your apache configuration.


Leon Timmermans

Site Timeline