lighttpd forum lighty > Poor number of simultaneous PHP...

Posted by JC
on 16.05.2008 23:16
Hi,

I got some probleme configuring php for a lot of concurent connections.

Config :
lighty 1.5 / php5.2.6
Core Quad Duo @ 2.6 / 8Go Ram

when trying a bench with ab -c 100 -n 100 on a slow php I got this in 
the server-counter :

proxy-core.0.backends."unix:/tmp/spawn-fcgi.socket".load: 100
proxy-core.0.backends."unix:/tmp/spawn-fcgi.socket".pool_size: 106
proxy-core.0.backends."unix:/tmp/spawn-fcgi.socket".requests: 5764
proxy-core.0.backends."unix:/tmp/spawn-fcgi.socket".requests_failed: 0
proxy-core.0.backlogged: 0
proxy-core.requests: 5764


and when I refresh every second proxy-core.requests increase by about 10 
to 20...

php/fast-cgi is configured as follow :
proxy-core.max-pool-size = 128
1 backend on spaw-fcgi using socket with PHP_FCGI_CHILDREN="128"


I think I must have 128 simulaneous connections so why is there a so 
high pool_size and juste about 10 actives php ?

If i try a bench with a simple phpinfo no probleme with 1000 request/s

I tryed a lot of things but I can't find a solution...

any help ?