| >> HOME >> FC5 MENU >> Apache パフォーマンス調整 |
 |
|
|
|
|
|
|
|
|
|
|
| |
|
|
| |
|
|
| |
[root@linux ~]# ab -n 100 -c 10 http://localhost/ 
|
|
|
| | ab オプション一覧
| オプション | 意味 |
| -n 数値 | 発行するリクエストの回数 |
| -c 数値 | 同時に発行するリクエストの数 |
| -t 数値 | サーバからのレスポンスの待ち時間(秒) |
| -p ファイル名 | サーバへ送信するファイル |
| -t コンテンツタイプ | サーバへ送信するコンテンツヘッダ |
| -v 数値 | 指定した数値に応じた動作情報を表示 |
| -w | 結果をhtmlで出力 |
| -x 属性 | html出力のtableタグに属性を追加 |
| -y 属性 | html出力のtrタグに属性を追加 |
| -z 属性 | html出力のtdまたはthタグに属性を追加 |
| -c 'cookiename=value' | cookie値を渡す |
| -a ユーザー名:パスワード | basic認証が必要なコンテンツ用 |
| -p ユーザー名:パスワード | 認証の必要なプロキシ用 |
| -v | abのバージョン表示 |
| -k | http/1.1のkeepalive有効 |
| -h | ヘルプ表示 |
|
|
| |
|
|
| |
|
|
| |
[root@linux ~]# ab -n 1000 -c 25 http://mountainbigroad.jp/
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 1997-2005 The Apache Software Foundation, http://www.apache.org/
Benchmarking mountainbigroad.jp (be patient).....done
Server Software: Apache/2.2.2
Server Hostname: mountainbigroad.jp
Server Port: 80
Document Path: /
Document Length: 14972 bytes
Concurrency Level: 5
Time taken for tests: 2.545357 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 1516000 bytes
HTML transferred: 1497200 bytes
Requests per second: 39.29 [#/sec] (mean)
Time per request: 127.268 [ms] (mean)
Time per request: 25.454 [ms] (mean, across all concurrent requests)
Transfer rate: 581.45 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 5.8 0 43
Processing: 16 107 259.1 17 1063
Waiting: 6 57 195.2 10 1004
Total: 16 108 263.0 17 1064
Percentage of the requests served within a certain time (ms)
50% 17
66% 19
75% 53
80% 70
90% 210
95% 1031
98% 1063
99% 1064
100% 1064 (longest request)
|
|
|
| |
|
|
|
|
|
| |
|
|
| |
|
|
| |
Timeout 60
KeepAlive 0n
MaxKeepAliveRequests 50
KeepAliveTimeout 15
StartServers 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 128
MaxClients 128
MaxRequestsPerChild 4000
|
|
|
| |
|
|
| |
|
|
| |
|
|
| |
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
#LoadModule deflate_module modules/mod_deflate.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule status_module modules/mod_status.so
#LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule info_module modules/mod_info.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule suexec_module modules/mod_suexec.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
:
:
#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
#IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions. These are only displayed for
# FancyIndexed directories.
#
#AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
#AddIconByType (TXT,/icons/text.gif) text/*
#AddIconByType (IMG,/icons/image2.gif) image/*
#AddIconByType (SND,/icons/sound2.gif) audio/*
#AddIconByType (VID,/icons/movie.gif) video/*
#AddIcon /icons/binary.gif .bin .exe
#AddIcon /icons/binhex.gif .hqx
#AddIcon /icons/tar.gif .tar
#AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
#AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
#AddIcon /icons/a.gif .ps .ai .eps
#AddIcon /icons/layout.gif .html .shtml .htm .pdf
#AddIcon /icons/text.gif .txt
#AddIcon /icons/c.gif .c
#AddIcon /icons/p.gif .pl .py
#AddIcon /icons/f.gif .for
#AddIcon /icons/dvi.gif .dvi
#AddIcon /icons/uuencoded.gif .uu
#AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
#AddIcon /icons/tex.gif .tex
#AddIcon /icons/bomb.gif core
#AddIcon /icons/back.gif ..
#AddIcon /icons/hand.right.gif README
#AddIcon /icons/folder.gif ^^DIRECTORY^^
#AddIcon /icons/blank.gif ^^BLANKICON^^
#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
#DefaultIcon /icons/unknown.gif
#
# AddDescription allows you to place a short description after a file in
# server-generated indexes. These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz
#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes.
#ReadmeName README.html
#HeaderName HEADER.html
#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing. Shell-style wildcarding is permitted.
#
#IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
:
:
|
|
|
| |
|
|
|
|
|
| |
|
|
| |
[root@linux ~]# service httpd restart
httpdを停止中: [ OK ]
httpd を起動中: [ OK ]
|
|
|
|
|
|
| |
[root@linux ~]# ab -n 1000 -c 25 http://mountainbigroad.jp/
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 1997-2005 The Apache Software Foundation, http://www.apache.org/
Benchmarking mountainbigroad.jp (be patient).....done
Server Software: Apache/2.2.2
Server Hostname: mountainbigroad.jp
Server Port: 80
Document Path: /
Document Length: 14972 bytes
Concurrency Level: 5
Time taken for tests: 2.182570 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 1515400 bytes
HTML transferred: 1497200 bytes
Time per request: 109.128 [ms] (mean)
Time per request: 21.826 [ms] (mean, across all concurrent requests)
Transfer rate: 677.64 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 14 101 289.2 14 1121
Waiting: 5 13 15.5 9 103
Total: 14 101 289.3 14 1121
Percentage of the requests served within a certain time (ms)
50% 14
66% 15
75% 15
80% 16
90% 70
95% 1070
98% 1112
99% 1121
100% 1121 (longest request)
|
|
|
| |
|
|
 |
|
 |
 |