Project

General

Profile

proxy-core backlogged: 151 and pool_size: 25

Added by waza123a over 14 years ago

Hello,

I have performance issue. Pleas help.

I have 8 web sites on server, and every web site has medium load..

Every web site has:

load: 0
pool_size: 0
backlogged: 0

But one of them, has:

load: 5
pool_size: 25
backlogged: 146

Yes, it's has about 30 000 visits per day and very big amount of refresh querys, but not every time it has so big pool size and backlogged..

What can be wrong ?

Lighttpd Config:

$HTTP["host"] =~ "my\.web\.com" {
server.document-root = "/home/myweb/public_html/" 
$PHYSICAL["existing-path"] =~ "\.php$" {
    proxy-core.balancer = "round-robin" 
    proxy-core.allow-x-sendfile = "enable" 
    proxy-core.protocol = "fastcgi" 
    proxy-core.backends = ( "unix:/tmp/myweb.sock" )
    proxy-core.max-pool-size = 25
}
}

PHP config:

spawn-fcgi -s /tmp/myweb.sock -f "/etc/lighttpd/php/bin/php-cgi -c /etc/lighttpd/domain_ini/myweb/php.ini" -C 6 -F 1 -U nobody -G nobody -u nobody -g nobody

Some errors

http://paste.lighttpd.net/722

Thanks for help.


Replies (1)

RE: proxy-core backlogged: 151 and pool_size: 25 - Added by waza123a over 14 years ago

I found why i have maximum pool size..

First like sad in docs, set in php cgi: -C 25 too. (but this is not that problem).

The problem was in one php script, which had fsockopen() connection to other server, and every user is running it when connecting to web site, so.. the php execution time is over 2 sec, so if 25 users connects to web at same time, they eat all 25 php processes, and the user nr: 26 and others, will be quoted.. and web for them will be at "loading.." until script run is done for first users..

So what i do, i created cache for my fsockopen() requests, rand(5,10) min's. Now all scripts execute time is 0.01 ms and pool_size is 0-1

Hope this will help some one, because i searched all over internet, and can't find anything.. I spent over month to find the problem.

    (1-1/1)