Re: Minimize startup timeout on dynamic fastcgi
Stefan Wendt <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Eugene wrote: >I'm experimenting with Apache2 + FastCGI + Suexec + PHP5. > > What version of mod_fastcgi do you use? I recommend using: http://www.fastcgi.com/dist/mod_fastcgi-SNAP-0404142202.tar.gz >Dynamic fastcgi server is starting too slow - it takes about 4-5 seconds >to start. Of cource, speed increase can compensate this, but speed of >first page load is important for users. The situations is the same after >process restart - time lag about 4-5 sec occurs. > > 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. 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/