Re: Minimize startup timeout on dynamic fastcgi
Eugene <my-subscr-JGs/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Stefan!
> What version of mod_fastcgi do you use? I recommend using:
> http://www.fastcgi.com/dist/mod_fastcgi-SNAP-0404142202.tar.gz
That's the version I use.
> I have never had problems like this. Are you using any special
> arguments to FastCgiConfig?
> There are a number of options there that control the startup and the
> termination of the dynamic processes.
> See here:
> http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiConfig
> The only option I use is "-idle-timeout 300" because some of my
> applications take longer than the
> default timeout to come back.
No, I use parameters like in manuals.
<IfModule mod_fastcgi.c>
AddHandler fastcgi-script .fcgi
#FastCGISuexec /usr/sbin/suexec
FastCGISuexec /usr/local/apache2/bin/suexec
FastCgiConfig -singleThreshold 100 -killInterval 300 -autoUpdate
-idle-timeout 240 -pass-header HTTP_AUTHORIZATION
<Location /php-fastcgi/>
Options ExecCGI
SetHandler fastcgi-script
</Location>
</IfModule>
I had looked at the manual, but didn't found a way how to minimize lag.
There's no option about this.
I'm not sure this bug relates to the timeout.
I'm using PHP 5.1.2
Here's error log of main server
[Fri Mar 10 16:13:26 2006] [warn] FastCGI: (dynamic) server
"/var/home/user/fcgi-bin/php5.fcgi" (uid 504, gid 505) restarted (pid 18743)
[Fri Mar 10 16:18:21 2006] [warn] FastCGI: (dynamic) server
"/var/home/user/fcgi-bin/php5.fcgi" (pid 18743) termination signaled
[Fri Mar 10 16:18:21 2006] [warn] FastCGI: (dynamic) server
"/var/home/user/fcgi-bin/php5.fcgi" (pid 18743) terminated by calling
exit with status '0'
[Fri Mar 10 18:05:49 2006] [warn] FastCGI: (dynamic) server
"/var/home/user/fcgi-bin/php5.fcgi" (uid 504, gid 505) restarted (pid 19207)
Proceses start and die well AFAIK as it should be. Am I right?
Thank you!
>
>
> Make also sure you also read about the PHP FCGI bug:
> http://bugs.php.net/bug.php?id=36158
>
> The patched version of php and SNAP-0404142202 work perfectly for me
> on a production
> server with <= 10 virtual hosts.
>
> Stefan Wendt
>
>
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/