Bad perfomance with nginx and php-fpm
Edho Arief
edho at myconan.net
Fri Nov 18 03:13:29 UTC 2011
On Fri, Nov 18, 2011 at 5:02 AM, Dieter Knopf
<dieterknopf at googlemail.com> wrote:
>
> The same result :-(
>
> This sould be far better with 20 php daemons, it must be another
> problem, like a timeout or something like that?
>
Here's my result on my own site:
[root at eustia ~]# ab -c 10 -n 1000 http://animebsd.net/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking animebsd.net (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: nginx/1.1.8
Server Hostname: animebsd.net
Server Port: 80
Document Path: /
Document Length: 54635 bytes
Concurrency Level: 10
Time taken for tests: 261.211 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 54893000 bytes
HTML transferred: 54635000 bytes
Requests per second: 3.83 [#/sec] (mean)
Time per request: 2612.112 [ms] (mean)
Time per request: 261.211 [ms] (mean, across all concurrent requests)
Transfer rate: 205.22 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 54 61 134.0 54 3053
Processing: 1260 2545 304.0 2515 3884
Waiting: 456 1534 219.6 1510 2673
Total: 1315 2606 328.8 2570 5409
Percentage of the requests served within a certain time (ms)
50% 2570
66% 2605
75% 2652
80% 2690
90% 2978
95% 3187
98% 3270
99% 3902
100% 5409 (longest request)
Not exactly fast (cpu constrained - kvm instance of 1 core/thread
e3-1270 cpu, 512MB ram, debian linux 6) but certainly completed all
requests without fail. 15 php5-cgi instances ran through supervisord
in tcp mode. There are quite a bit plugins installed, too (but no
wp-cache of some kind).
No tweaking at nginx side, some timeout and limit increase on php side.
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list