Abコマンドを使ったウェブアプリケーションのパフォーマンス計測

Embed Size (px)

Citation preview

  • 1. ab @hidenorigoto /

2. ab = Apache Bench Apache URL URL http://www.atmarkit.co.jp/flinux/rensai/apache15/apache15b.html XAMPP Windows Windows ab 3. ab ab -c 40 -n 40 http://blog.innx.co.jp/ 4. ab(1) Server Software:Apache/2.2.3 Server Hostname:blog.innx.co.jp Server Port:80 Document Path:/ Document Length:47837 bytes 5. ab(2) Concurrency Level:40 Time taken for tests:0.957 seconds Complete requests:40 Failed requests:0 Write errors:0 Total transferred:1926080 bytes HTML transferred:1913480 bytes Requests per second:41.79 [#/sec] (mean) Time per request:957.055 [ms] (mean) Time per request:23.926 [ms] (mean, across all concurrent request Transfer rate:1965.34 [Kbytes/sec] received 6. ab(3) Connection Times (ms) minmean[+/-sd] medianmax Connect:010.511 Processing:182597225.2623932 Waiting:109556229.8595916 Total:183597 225.1623932 LAN Connect 7. ab PC Apache Requests per second:5681.10 [#/sec] (mean) phpinfo Requests per second:1171.15 [#/sec] (mean) cakephp Requests per second:47.08 [#/sec] (mean) PHP 5 DB PHP 100 200 8. 1. -> -> 2. -> 3. -> CSS 9. Apache(1) httpd.conf StartServers8 MinSpareServers5 MaxSpareServers20 ServerLimit256 MaxClients256 MaxRequestsPerChild4000 MaxClients(=ServerLimit) MaxRequestsPerChild PHP 10. Apache(2) mod_expires http://httpd.apache.org/docs/2.0/mod/mod_expires.html -> 11. APC PHP -> PHP APC KVS memcached OK 1.URL 2. URL