httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dheera Venkatraman" <>
Subject Re: CGI and defunct processes
Date Sat, 10 Aug 2002 02:35:56 GMT
Update -


The part about it working in 2.0.35 was in error, I tried 2.0.35 again and
it still had the problem.

Anyway, I found that if I compiled with --with-mpm=worker the problem
disppeared... I wonder what the problem with prefork was though?


----- Original Message -----
From: "Dheera Venkatraman" <>
To: <>
Sent: 09 August 2002 17:17
Subject: CGI and defunct processes

> Hi,
> My apologies if this answer is obvious; I've looked around the Apache
> documentation and searched usenet as well...
> I'm using Apache 2.0.39 with prefork on RedHat 7.3 (kernel 2.4.18-3), on a
> 400mhz. I compiled from source with --enable-mods-shared=all and
> LoadModule'd all the relevant ones.
> Here's the problem - I find that when I run CGI scripts run and finish
> loading content to the browser, they leave a [defunct] process for about
> seconds or so. If included in a .shtml file, Apache halts and seems to
> for these zombie processes to disappear before serving the client the rest
> of the page - images, etc. which causes some annoying delays when I embed
> CGI script in a .shtml with images. Here's an example to make this clear:
> test.cgi: (a basic hello world script in perl)
>   #!/usr/bin/perl -w
>   print "Content-type: text/html\n\n";
>   print "Hello world\n";
> test.jpg
>   [ some image.... any image demonstrates this ]
> test.shtml: (this is the page to view)
>   <HTML><BODY>
>   Here is a hello world script:<BR>
>   <!--#exect cgi="test.cgi"-->
>   <img src="test.jpg">
>   </BODY></HTML>
> Now, if I view test.shtml from a browser, first, the "Hello World" from
> included CGI appears instantly. Then, the zombie [defunct] cgi process
> exists on the server from this, and it does *not* serve the client the
> 'test.jpg' image until 4-5 seconds later when the zombie has disappeared
> from the process list. So the effect is, "Hello World", then 5 seconds
> later, the image starts to load.
> I've checked that it isn't a client-side problem (tested on different
> browsers and OSes), and furthermore, this does *not* seem to happen in
> Apache 2.0.35... any ideas?
> Thanks in advance for any help anyone can provide!
> -Dheera Venkatraman

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message