Webレスポンス測定ツールhttp_loadをインストール、設定する方法

概要:
http_loadはwebサーバのベンチマークツールです。apache付属のabとは違い、複数のURLに対して同時にアクセスできる。
1.http_loadをダウンロード
URL:
http://acme.com/software/http_load/
cd /root
wget http://acme.com/software/http_load/http_load-12mar2006.tar.gz
tar xzf http_load-12mar2006.tar.gz

2.http_loadをインストール
cd http_load-12mar2006
make

3.http_loadの使い方
root@www:~/http_load-12mar2006
# ./http_load –help
usage: ./http_load [-checksum] [-throttle] [-proxy host:port] [-verbose] [-timeout secs] [-sip sip_file]
-parallel N | -rate N [-jitter]
-fetches N | -seconds N
url_file
One start specifier, either -parallel or -rate, is required.
One end specifier, either -fetches or -seconds, is required.

4.http_loadのパラメータ説明
-parallel : 同時接続数の指定
-rate: 毎秒ごとの新しい接続数の指定
-fetches:接続する合計回数
-seconds:接続する秒数

5.検証テスト

パラメータを選択するとき、-parallelとrateの中に一つを指定、-fetchesと-secondsの中に一つを指定
5.1 http_load -parallel 50 -s 10 urls.txt
説明:同時に50プロセスを使用して、ランダムurls.txtのURLリストにアクセス、合計10秒です

5.2 http_load -rate 50 -f 5000 urls.txt
説明:秒あたり50回リクエスト、合計5000回まで停止
 

Server

Posted by arkgame