You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Doug MacEachern <do...@covalent.net> on 2001/06/15 02:03:36 UTC

Re: Trying to trace a spinning httpd

On 7 May 2001, Yusuf Goolamabbas wrote:

> Apache 1.3.19/Mod-perl 1.25 under Linux 2.2.19
> 
> Hi, I am trying to better understand Apache/mod-perl behaviour under
> this scenario. I have some CGI's which connect to various servers
> listening on different ports and collect the output and push them to
> the clients. Whilst the data is streaming from the server to the CGI,
> I kill the server. After a few seconds, I see httpd take up increasing
> amount of CPU time [it can go up to 90% of CPU]. straceing the httpd
> process shows that it is continuously in a read call to the file
> descriptor representing the connection it was last in
> 
> I ran httpd in single instance mode [httpd -X] and attached gdb to
> it. I sourced .gdbinit and typed curinfo
> This is what I get 
> 
> (gdb) curinfo
> Attempt to extract a component of a value that is not a structure
> pointer.

what is your perl -V?
you might need to move up the stack first:
(gdb) up 7
(gdb) curinfo
 
> #8  0x80e574b in Perl_pp_readline ()

this would be the <> operator, did you check the return value from
whatever you use to connect to the socket ?  what are you using to connect
to these various servers?