Apache Process Tree

I

++imanshu

Hi,

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
14394.

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.

Thanks,
++imanshu
 
I

++imanshu

Hi,

     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
14394.

     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.

Thanks,
++imanshu

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

And a little later :-

httpd(14416)+--httpd(14417)
|--httpd(14418)

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

Thanks,
++imanshu
 
L

Leon Timmermans

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

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

Regards,

Leon Timmermans
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top