httpload
페이지 정보
작성자 조희승 댓글 0건 조회 124,171회 작성일 12-08-17 15:13본문
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.
-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.
urls 파일을 주면 램덤으로 선택된다.......ㅋ
urls 파일 만들때 서버이름으로 하지말고, IP로 하자....
예제
http_load -rate 10 -seconds 1 urls
수정된 버전
- 각 request별로 response time을 찍는다.
maketestfile_heesn
#!/bin/sh
#
# make_test_files - create a set of files for use with http_load
#
# This creates a specified number of files that are either a kilobyte
# or a megabyte in length. The files are named kNNN and mNNN.
#
# make_test_files - create a set of files for use with http_load
#
# This creates a specified number of files that are either a kilobyte
# or a megabyte in length. The files are named kNNN and mNNN.
if [ $# -ne 1 ] ; then
echo "usage: $0 #kfiles " >&2
exit 1
fi
echo "usage: $0 #kfiles " >&2
exit 1
fi
kfiles="$1"
tmp=mtf.$$
ktmp=ktmp.$$
rm -f $tmp $ktmp
rm -f urls
ktmp=ktmp.$$
rm -f $tmp $ktmp
rm -f urls
if [ "$kfiles" -gt 0 ] ; then
echo "123456789012345678901234567890123456789012345678901234567890123" > $ktmp
cat $ktmp $ktmp $ktmp $ktmp > $tmp
cat $tmp $tmp $tmp $tmp > $ktmp
cat $ktmp $ktmp $ktmp $ktmp > $tmp
i=1
while [ $i -le "$kfiles" ] ; do
cp $tmp "k$i"
echo "http://camel.kaist.ac.kr/httpload/k$i" >> urls
i=`expr "$i" + 1`
done
fi
echo "123456789012345678901234567890123456789012345678901234567890123" > $ktmp
cat $ktmp $ktmp $ktmp $ktmp > $tmp
cat $tmp $tmp $tmp $tmp > $ktmp
cat $ktmp $ktmp $ktmp $ktmp > $tmp
i=1
while [ $i -le "$kfiles" ] ; do
cp $tmp "k$i"
echo "http://camel.kaist.ac.kr/httpload/k$i" >> urls
i=`expr "$i" + 1`
done
fi
rm -f $tmp $ktmp
댓글목록
등록된 댓글이 없습니다.