Ticket #1480 (new defect)

Opened 9 months ago

mod_proxy_backend_fastcgi causing 50% CPU load

Reported by: djunky Owned by: jan
Priority: high Milestone: 1.5.0
Component: mod_proxy_backend_fastcgi Version: 1.5.x-svn
Severity: major Keywords: mod_proxy_backend_fastcgi cpu load usage php
Cc: beschulz@… Blocked By:
Need User Feedback: no Blocking:

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

Attachments

Add/Change #1480 (mod_proxy_backend_fastcgi causing 50% CPU load)

Author



Change Properties
<Author field>
Action
as new
 
Note: See TracTickets for help on using tickets.