FastCat
Advanced Member | Редактировать | Профиль | Сообщение | ICQ | Цитировать | Сообщить модератору Есть два сервера под SLES с примерно одинаковой конфигурацией. Основное различие - память, в одном 4Гб. в другом 16Гб. На обоих серверах работает один и тот же скрипт. Как с помощью команды AB оценить слабые места: Apache, Php, MySql ? Что бы потом все это дело нужным образом настроить. Данную команду запускаю перекрестно, с одного сервера на другой. Вот их сообщения: Код: server1# ab2 -k -n 100 -c 100 http://server2/index.php Benchmarking server2 (be patient).....done Server Software: Apache/2.2.12 Server Hostname: server2 Server Port: 80 Document Path: /index.php Document Length: 3791 bytes Concurrency Level: 100 Time taken for tests: 8.233 seconds Complete requests: 100 Failed requests: 98 (Connect: 0, Receive: 0, Length: 98, Exceptions: 0) Write errors: 0 Keep-Alive requests: 100 Total transferred: 440956 bytes HTML transferred: 380528 bytes Requests per second: 12.15 [#/sec] (mean) Time per request: 8232.549 [ms] (mean) Time per request: 82.325 [ms] (mean, across all concurrent requests) Transfer rate: 52.31 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 1 1.2 0 3 Processing: 492 1693 1780.5 885 8229 Waiting: 492 1692 1780.5 884 8228 Total: 492 1693 1781.3 885 8232 Percentage of the requests served within a certain time (ms) 50% 885 66% 1291 75% 1944 80% 2381 90% 5206 95% 5304 98% 8143 99% 8232 100% 8232 (longest request) | Код: server2# ab2 -k -n 100 -c 100 http://server1/index.php Benchmarking server1 (be patient).....done Server Software: Apache/2.2.10 Server Hostname: server1 Server Port: 80 Document Path: /index.php Document Length: 3760 bytes Concurrency Level: 100 Time taken for tests: 5.515 seconds Complete requests: 100 Failed requests: 97 (Connect: 0, Receive: 0, Length: 97, Exceptions: 0) Write errors: 0 Keep-Alive requests: 100 Total transferred: 435339 bytes HTML transferred: 376981 bytes Requests per second: 18.13 [#/sec] (mean) Time per request: 5514.937 [ms] (mean) Time per request: 55.149 [ms] (mean, across all concurrent requests) Transfer rate: 77.09 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 3 2.2 4 5 Processing: 498 2025 1039.4 1763 5469 Waiting: 496 2024 1039.4 1761 5468 Total: 498 2028 1040.2 1767 5474 Percentage of the requests served within a certain time (ms) 50% 1767 66% 2233 75% 2424 80% 2685 90% 3417 95% 4693 98% 5049 99% 5474 100% 5474 (longest request) | Нужно в итоге настроить на серверах Apache, Php, MySql так, что бы тестируемый скрипт работал с максимально возможным количеством одновременных пользователей и максимальным количеством одновременных соединений. | Всего записей: 964 | Зарегистр. 06-01-2002 | Отправлено: 16:29 21-01-2015 | Исправлено: FastCat, 16:31 21-01-2015 |
|