There was a Thread in the German Corner.
Maybe it could help - i translate it:
First at i changed the "var/www/fcgi/DOMAIN/php4-fcgi-starter" file
This is the Original Code:
Code:
#!/bin/sh
PHPRC="/var/www/fcgi/DOMAIN/php4/"
export PHPRC
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php5-cgi
And this is my modified Code
Code:
#!/bin/sh
# Kill all old process
ps ax -F | awk '{ if ( $3 == "1" && $1 == "vu2001" && $12 == "/usr/bin/php5-cgi" ) { print "kill " $2 } }' | sh
PHPRC="/var/www/fcgi/DOMAIN/php4/"
export PHPRC
#PHP_FCGI_CHILDREN=10
#export PHP_FCGI_CHILDREN
#PHP_FCGI_MAX_REQUESTS=11000
#export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php5-cgi
Attention!
change "vu2001" and "/usr/bin/php5-cgi" to your needs.
Now the load should going down.
I also changed the file "/etc/apache2/mods-available/fastcgi.conf"
Search for this:
Code:
FastCgiConfig -minProcesses 1 -maxProcesses 10 -singleThreshold 100
#-killInterval 300 \
#-autoUpdate \
#-idle-timeout 300 \
#-pass-header HTTP_AUTHORIZATION
FastCgiServer /var/www/fcgi/master/php4-fcgi-starter -user vu2000 -group vu2000
Replace through:
Code:
FastCgiConfig -idle-timeout 300 -killInterval 60 -maxClassProcesses 5 -maxProcesses 400 -minProcesses 0 -multiThreshold 80 -startDelay 5
Now my Server runs the last 3 weeks without big problems and with a max. load of 0.40
You must also change the php5-fcgi-starter if you use PHP5.
Greez BeNe