[Moscow.pm] чем плох девелоперский веб-сервер catalyst
Alexey Sharypov
shv на agava.com
Чт Дек 11 06:11:40 PST 2008
Спасибо! Действительно помогло! :)
> From: Eugene Kosov <evgeniy на kosov.su>
>
> Добавь это в fastcgi_params:
>
> fastcgi_param PATH_INFO $request_uri;
>
> Мне в своё время это помогло...
Кстати, если кому интересно, вот результаты сравнения одного и того же
проекта под тестовым сервером и FastCGI:
Тестовый:
ab -n 200 -c 10 http://testserver:3000/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking testserver (be patient)
Completed 100 requests
Finished 200 requests
Server Software:
Server Hostname: testserver
Server Port: 3000
Document Path: /
Document Length: 24106 bytes
Concurrency Level: 10
Time taken for tests: 20.190004 seconds
Complete requests: 200
Failed requests: 0
Write errors: 0
Total transferred: 4884800 bytes
HTML transferred: 4821200 bytes
Requests per second: 9.91 [#/sec] (mean)
Time per request: 1009.500 [ms] (mean)
Time per request: 100.950 [ms] (mean, across all concurrent requests)
Transfer rate: 236.26 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.8 0 7
Processing: 211 983 183.7 949 1492
Waiting: 208 980 183.1 947 1490
Total: 211 983 183.6 949 1492
Percentage of the requests served within a certain time (ms)
50% 949
66% 988
75% 1008
80% 1042
90% 1293
95% 1410
98% 1460
99% 1486
100% 1492 (longest request)
Это FastCGI:
ab -n 200 -c 10 http://testserver:1901/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking testserver (be patient)
Completed 100 requests
Finished 200 requests
Server Software: nginx/0.6.32
Server Hostname: testserver
Server Port: 1901
Document Path: /
Document Length: 24106 bytes
Concurrency Level: 10
Time taken for tests: 20.91455 seconds
Complete requests: 200
Failed requests: 0
Write errors: 0
Total transferred: 4886000 bytes
HTML transferred: 4821200 bytes
Requests per second: 9.95 [#/sec] (mean)
Time per request: 1004.573 [ms] (mean)
Time per request: 100.457 [ms] (mean, across all concurrent requests)
Transfer rate: 237.46 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.0 0 8
Processing: 100 970 187.6 950 1585
Waiting: 96 965 186.5 947 1581
Total: 100 971 187.5 950 1585
Percentage of the requests served within a certain time (ms)
50% 950
66% 1003
75% 1030
80% 1044
90% 1095
95% 1548
98% 1569
99% 1570
100% 1585 (longest request)
Подробная информация о списке рассылки Moscow-pm