Project

General

Profile

Actions

Bug #1480

closed

mod_proxy_backend_fastcgi causing 50% CPU load

Added by Anonymous over 16 years ago. Updated over 7 years ago.

Status:
Obsolete
Priority:
High
Category:
mod_proxy_backend_fastcgi
Target version:
ASK QUESTIONS IN Forums:

Description

I am running lighttpd from svn (rev. 2025) on a VPS running Debian etch.
lighttpd is settup this way to use fast-cgi:

After a while lighttpd is using allmoast exactly 50% CPU time forever.
The problem appeared with the use of mod_proxy_backend_fastcgi. it does not matter if i use round-robin or sqf.
At the moment i am using monit to restart lighttpd if the cpu time is a certain ammount of time between 48% and 51%.

Note that i did not apply the patch provided in http://trac.lighttpd.net/trac/ticket/922 because a.) the patch is one byte in size and thus not a valid gzipped file and b.) i guess that someone has comitted the patch to the trunk if the last activity there was 11 month ago.

$PHYSICALexisting-path =~ "\.php$" {
proxy-core.balancer = "round-robin" # "sqf"
proxy-core.protocol = "fastcgi"
proxy-core.allow-x-sendfile = "enable"
proxy-core.backends = ( "unix:/tmp/php5-fcgi.socket" )
proxy-core.max-pool-size = 2
proxy-core.rewrite-request = (
"_pathinfo" => ( "\.php(/.*)" => "$1" )
)
}

the backend is spawn-fcgi with php5-cgi.
cmd-line used is
spawn-fcgi -s /tmp/php5-fcgi.socket -f /usr/bin/php5-cgi -u www-data -g www-data -C 2 -P /path/to/pid.pid

-- djunky

Actions #1

Updated by gstrauss over 7 years ago

  • Description updated (diff)
  • Assignee deleted (jan)
  • Missing in 1.5.x set to Yes
Actions #2

Updated by gstrauss over 7 years ago

  • Status changed from New to Obsolete
Actions

Also available in: Atom