「http load」の版間の差分

提供: Wikiducca
移動: 案内検索
(ページの作成: Webサーバのベンチマークツール。<br /> Apache 付属の ab とは違い、複数のURLに対して同時にアクセスできる。 == DL == http://www.acme.com/sof...)
 
(1版)
 
(8人の利用者による、間の8版が非表示)
(相違点なし)

2019年1月17日 (木) 04:14時点における最新版

Webサーバのベンチマークツール。
Apache 付属の ab とは違い、複数のURLに対して同時にアクセスできる。

DL

http://www.acme.com/software/http_load/


インストール

[root@server src]# tar zxvf http_load-12mar2006.tar.gz 
http_load-12mar2006/
http_load-12mar2006/Makefile
http_load-12mar2006/README
http_load-12mar2006/http_load.1
http_load-12mar2006/http_load.c
http_load-12mar2006/make_test_files
http_load-12mar2006/port.h
http_load-12mar2006/timers.c
http_load-12mar2006/timers.h
http_load-12mar2006/version.h
http_load-12mar2006/FILES

[root@server src]# cd http_load-12mar2006

[root@server http_load-12mar2006]# make
gcc -Wall -O    -c http_load.c
http_load.c: In function `main':
http_load.c:413: 警告: 関数 `time' の暗黙の宣言
gcc -Wall -O    -c timers.c
gcc -Wall -O    http_load.o timers.o -s   -o http_load

[root@server http_load-12mar2006]# make install
rm -f /usr/local/bin/http_load
cp http_load /usr/local/bin
rm -f /usr/local/man/man1/http_load.1
cp http_load.1 /usr/local/man/man1


使い方

$ http_load -parallel 10 -fetches 100 url.txt


オプション

接続数

parallelかrateで指定。

  • parallel: 同時接続数の指定
  • rate: 毎秒ごとの新しい接続数の指定

接続回数

secondsかfetchesで指定。

  • fetches: 接続する合計回数
  • seconds: 接続する秒数


結果

[root@server ~]# http_load -parallel 10 -fetches 100 url_list.txt 
100 fetches, 10 max parallel, 28183 bytes, in 0.117039 seconds
281.83 mean bytes/connection
854.416 fetches/sec, 240800 bytes/sec
msecs/connect: 1.13888 mean, 8.701 max, 0.06 min
msecs/first-response: 6.29999 mean, 11.51 max, 2.616 min
HTTP response codes:
  code 200 -- 100