Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Apache Process Tree

Reply
Thread Tools

Apache Process Tree

 
 
++imanshu
Guest
Posts: n/a
 
      09-15-2008
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
 
Reply With Quote
 
 
 
 
++imanshu
Guest
Posts: n/a
 
      09-15-2008
On Sep 15, 11:54*am, "++imanshu" <himanshu.g...@gmail.com> wrote:
> 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(1439

And a little later :-

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

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

Thanks,
++imanshu
 
Reply With Quote
 
 
 
 
Leon Timmermans
Guest
Posts: n/a
 
      09-15-2008
On Mon, 15 Sep 2008 00:43:49 -0700, ++imanshu wrote:
> Why is a new perl interpreter (1439 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems running Apache FOP: org.apache.fop.fo.FOTreeBuilder fatalError Pablo Java 0 03-28-2007 02:31 PM
org/apache/xpath/objects/XObject incompatible with org/apache/xpath/objects/XNodeSet duduch_1er@hotmail.com XML 4 08-10-2006 01:38 PM
Apache FileUpload - java.lang.NoClassDefFoundError: org/apache/commons/io/FileCleaner kebabkongen@hotmail.com Java 2 03-16-2006 09:20 AM
AXIS jars org.apache.axis.wsi.* and org.apache.axis.transport.jms.* unkwb@web.de Java 0 02-23-2005 04:02 PM
B tree, B+ tree and B* tree Stub C Programming 3 11-12-2003 01:51 PM



Advertisments