Startup time of PHP with FastCGI

"RupS" <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hello everybody,

I use mod_fastcgi on Apache 2.0.53 with suexec wrapper to run PHP with user
credentials, I experience, however, a slow startup of the php processes.
It takes up to 4 seconds for the processes to be spawned (regardless of the
amount of children...)
In the docs of mod_fastcgi, I've found some directives that gave me some
hope of tuning this behaviour, but It seems they are being ignored. It makes
no difference at all.
>From command line PHP does start immediatly.
 
I'd like to keep using FastCGI since it's working very well, except for the
startup times, which is a big issue when you're working with multiple
clustered webservers....
 
The php.sh looks like this:
 
#!/bin/sh
PHP_FCGI_CHILDREN=3
export PHP_FCGI_CHILDREN
exec /usr/local/bin/php

The FastCgiConfig in httpd.conf of apache is as follows:
 
FastCgiWrapper /usr/local/sbin/suexec
FastCgiConfig -init-start-delay 1 -restart -restart-delay 1
FastCgiConfig -maxClassProcesses 5 -maxProcesses 50
FastCgiConfig -singleThreshold 100

And a default virtualhost looks like:
 
<VirtualHost *:80>
        DocumentRoot /www/vhost/public_html/
        ServerName www.vhost.com
        ScriptAlias /fcgi-bin/ /www/vhost/etc/
        SuexecUserGroup username username
        ScriptAlias /cgi-bin/ /www/vhost/cgi-bin/
        Action application/x-httpd-php /fcgi-bin/php.sh
        FrontPage On
        FrontPageAdmin Off
        #extra
</VirtualHost>

Some specs:
FreeBSD 5.3-RELEASE-p10
Apache 2.0.53
PHP 4.3.11

Thanx for your time,
RupS

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.