Това е при сервиране на статична страница
ab -n 100 -c 5 http://localhost/
Server Software: Apache/2.2.17
Server Hostname: localhost
Server Port: 80
Document Path: /
Document Length: 177 bytes
Concurrency Level: 5
Time taken for tests: 286.629 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 45500 bytes
HTML transferred: 17700 bytes
Requests per second: 0.35 [#/sec] (mean)
Time per request: 14331.452 [ms] (mean)
Time per request: 2866.290 [ms] (mean, across all concurrent requests)
Transfer rate: 0.16 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 6515 13846 3952.7 13837 21517
Waiting: 6515 13846 3952.6 13836 21513
Total: 6515 13846 3952.7 13837 21517
Percentage of the requests served within a certain time (ms)
50% 13837
66% 15880
75% 17155
80% 17517
90% 20057
95% 20291
98% 21513
99% 21517
100% 21517 (longest request)
Съдейки по резултатите, ако правилно съм ги разбрал, няма смисъл да тествам с php страница.
Ще търся някакви начини за оптимизиране на Apache, ако имате някакви напътствия или генерални съвети, ще се радвам да ги чуя, защото малко ме е страх да пипам неща, които не разбирам напълно.
edit:
Промених MaxClients на 700 и ServerLimit на 750
и резултата беше следния:
ab -n 1000 -c 5 http://localhost/
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 localhost (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: Apache/2.2.17
Server Hostname: localhost
Server Port: 80
Document Path: /
Document Length: 177 bytes
Concurrency Level: 5
Time taken for tests: 0.065 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 455000 bytes
HTML transferred: 177000 bytes
Requests per second: 15279.07 [#/sec] (mean)
Time per request: 0.327 [ms] (mean)
Time per request: 0.065 [ms] (mean, across all concurrent requests)
Transfer rate: 6789.04 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 0 0 0.1 0 1
Waiting: 0 0 0.1 0 1
Total: 0 0 0.1 0 1
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 1
95% 1
98% 1
99% 1
100% 1 (longest request)
Струва ми се доста по-добре
Добри ли ви се струват тези стройности ? До какви стойности мога да си играя да увеличавам MaxClients безопасно ?
Някакви други съвети за оптимизация ?
П.П. Моля да ме извините за дългия output, който поствам