linux下压力测试软件siege的安装与使用详解
2013-05-09 11:51
841 查看
假定:
1 centos 系统 root登录
2 siege-2.72版本 下载自:http://www.joedog.org
3 openssl 安装路径 /usr/local/ssl
4 使用人员:php开发人员
关于siege的说明请先参考http://www.joedog.org
选择siege的理由:
1 稳定
2 除了对http支持外,还支持https,并且支持的很好,apachebanch 对https支持的不够好。
3 安装简单,功能够开发测试用
一、siege的安装
cd /root/
rz
tar -zxvf siege-2.72.tar.gz
cd siege-2.72
./configure --prefix=/usr/local/siege --mandir=/usr/local/man --with-ssl=/usr/local/ssl
mkdir -p /usr/local/siege/etc/
mkdir -p /usr/local/siege/var/
make
make install
创建.siegec.config配置文件到当前用户的家目录下
/usr/local/siege/bin/siege.config
安装完成
查看配置文件
/usr/local/siege/bin/siege -C
CURRENT SIEGE CONFIGURATION
JoeDog/1.00 [en] (X11; I; Siege 2.72)
Edit the resource file to change the settings.
----------------------------------------------
version: 2.72
verbose: false
debug: false
protocol: HTTP/1.1
connection: close
concurrent users: 15
time to run: n/a
repetitions: n/a
socket timeout: 30
delay: 1 sec
internet simulation: false
benchmark mode: false
failures until abort: 1024
named URL: none
URLs file: /usr/local/siege/etc/urls.txt
logging: true
log file: /usr/local/siege/var/siege.log
resource file: /root/.siegerc
timestamped output: false
comma separated output: false
allow redirects: true
allow zero byte data: true
allow chunked encoding: true
proxy auth:
www auth:
二、siege的使用
举例说明:
50个用户(每次并发量,注意不是每秒并发量) 重复100次 共产生 50 * 100 = 5000个请求
/usr/local/siege/bin/siege -c 50 -r 100 https://www.abc.com/a.php
50个用户 重复100次 发送GET参数
/usr/local/siege/bin/siege -c 50 -r 100 https://www.abc.com/a.php?name=zhangsan
50个用户 重复100次 发送POST参数 (注意引号)
/usr/local/siege/bin/siege -c 50 -r 100 "https://www.abc.com/a.php POST name=zhangsan"
50个用户 重复100次 发送POST参数(从文件中读取)
/usr/local/siege/bin/siege -c 50 -r 100 "https://www.abc.com/a.php POST < /root/ab_test/post.xml"
另外还有发送时间参数等
详情请man 或 siege -h
siege报表解析,请man查看,暂略(有点累了,不想写了。。。。。)。
常见问题见:http://www.joedog.org/siege-faq/
1 centos 系统 root登录
2 siege-2.72版本 下载自:http://www.joedog.org
3 openssl 安装路径 /usr/local/ssl
4 使用人员:php开发人员
关于siege的说明请先参考http://www.joedog.org
选择siege的理由:
1 稳定
2 除了对http支持外,还支持https,并且支持的很好,apachebanch 对https支持的不够好。
3 安装简单,功能够开发测试用
一、siege的安装
cd /root/
rz
tar -zxvf siege-2.72.tar.gz
cd siege-2.72
./configure --prefix=/usr/local/siege --mandir=/usr/local/man --with-ssl=/usr/local/ssl
mkdir -p /usr/local/siege/etc/
mkdir -p /usr/local/siege/var/
make
make install
创建.siegec.config配置文件到当前用户的家目录下
/usr/local/siege/bin/siege.config
安装完成
查看配置文件
/usr/local/siege/bin/siege -C
CURRENT SIEGE CONFIGURATION
JoeDog/1.00 [en] (X11; I; Siege 2.72)
Edit the resource file to change the settings.
----------------------------------------------
version: 2.72
verbose: false
debug: false
protocol: HTTP/1.1
connection: close
concurrent users: 15
time to run: n/a
repetitions: n/a
socket timeout: 30
delay: 1 sec
internet simulation: false
benchmark mode: false
failures until abort: 1024
named URL: none
URLs file: /usr/local/siege/etc/urls.txt
logging: true
log file: /usr/local/siege/var/siege.log
resource file: /root/.siegerc
timestamped output: false
comma separated output: false
allow redirects: true
allow zero byte data: true
allow chunked encoding: true
proxy auth:
www auth:
二、siege的使用
举例说明:
50个用户(每次并发量,注意不是每秒并发量) 重复100次 共产生 50 * 100 = 5000个请求
/usr/local/siege/bin/siege -c 50 -r 100 https://www.abc.com/a.php
50个用户 重复100次 发送GET参数
/usr/local/siege/bin/siege -c 50 -r 100 https://www.abc.com/a.php?name=zhangsan
50个用户 重复100次 发送POST参数 (注意引号)
/usr/local/siege/bin/siege -c 50 -r 100 "https://www.abc.com/a.php POST name=zhangsan"
50个用户 重复100次 发送POST参数(从文件中读取)
/usr/local/siege/bin/siege -c 50 -r 100 "https://www.abc.com/a.php POST < /root/ab_test/post.xml"
另外还有发送时间参数等
详情请man 或 siege -h
siege报表解析,请man查看,暂略(有点累了,不想写了。。。。。)。
常见问题见:http://www.joedog.org/siege-faq/
相关文章推荐
- linux下压力测试软件siege的安装与使用详解
- Linux中软件包的安装yum的使用,以及用find查找使用详解!
- linux使用ab程序,对网页做压力测试——linux安装web服务器14
- Linux压力测试工具Tsung安装、使用和图形报表生成
- SIP网关压力测试工具SIPp的安装及使用详解
- LINUX 下软件包的安装与使用详解
- linux下web压力测试工具ab使用及详解
- linux下web压力测试工具ab使用及详解
- 在linux下安装Siege进行压力模拟测试
- Linux压力测试工具webbench的安装使用介绍
- Linux下网站压力测试工具webbench下载安装使用
- Siege—最好的Linux下Web服务器性能/压力测试工具,Siege使用教程详细说明
- Siege―最好的Linux下Web服务器性能/压力测试工具,Siege使用教程详细说明
- Linux下进行Web服务器压力(并发)测试工具http_load、webbench、ab、Siege、autobench简单使用教程(转)
- 压力测试工具Siege安装与使用
- [原创]Linux下Siege压力测试工具使用介绍
- linux下安装ab压力测试工具及ab命令详解
- Siege压力测试工具的安装和使用
- Linux下网站压力测试工具webbench下载安装使用
- linux下web压力测试工具siege的使用