1.安装erlang
tar zvxf otp_src_R15B.tar.gz
cd otp_src_R15B
./configure
make
make install
2.安装tsung
tar zvxf tsung-1.4.2.tar.gz
./configure
make
make install
3.安装perl的Template
tar zvxf Template-Toolkit-2.24.tar.gz
perl Makefile.PL
make
make test
make install
4.安装gnuplot
yum install gnuplot
yum install gd
yum install libpng
yum install zlib
5.确定gnuplot支持png
命令行输入:gnuplot
gnuplot> set terminal
确认支持png,png PNG images using libgd and TrueType fonts
6.执行简单脚本
cd /usr/local/src/tsung-1.4.2/examples
cp http_simple.xml /root/tsung/
vi http_simple.xml
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/local/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" version="1.0">
<clients>
<client host="localhost" use_controller_vm="true"/>
</clients>
<servers>
<server host="hiluo.cn" port="80" type="tcp"/>
</servers>
<load>
<arrivalphase phase="1" duration="2" unit="minute">
<users maxnumber="1000" arrivalrate="100" unit="second"/>
</arrivalphase>
</load>
<options>
<option type="ts_http" name="user_agent">
<user_agent probability="80">Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Galeon/1.3.21</user_agent>
<user_agent probability="20">Mozilla/5.0 (Windows; U; Windows NT 5.2; fr-FR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4</user_agent>
</option>
</options>
<sessions>
<session name="http-example" probability="100" type="ts_http">
<request> <http url="/" method="GET" version="1.1"/> </request>
<request> <http url="/firstPage/img/logo.png" method="GET" version="1.1" if_modified_since="Fri, 14 Nov 2003 02:43:31 GMT"/> </request>
<request> <http url="/firstPage/img/web_ad_02.png" method="GET" version="1.1" if_modified_since="Fri, 14 Nov 2003 02:43:31 GMT"/> </request>
</session>
</sessions>
</tsung>
tsung -f http_simple.xml start
输出:
Starting Tsung
"Log directory is: /root/.tsung/log/20120329-2234"
待执行完毕, cd /root/.tsung/log/20120329-2234
/usr/local/lib/tsung/bin/tsung_stats.pl 生成报表图形
python -m SimpleHTTPServer 使用python建立一个简单的httpserver,开启端口8000,在本地浏览器输入http://yourserver:8000
- 大小: 29.6 KB
- 大小: 31.4 KB
分享到:
相关推荐
MQTT压力测试之Tsung的使用 MQTT压力测试之Tsung的使用
tsung是用erlang开发的一款简单易用的压力测试工具,目前仅支持linux各版本系统安装,有tar.gz和deb两种安装文件, 目前我们测试用的是CentOS或RedHat两种操作系统,因此选择tar.gz安装文件,总的来说tsung工具有...
Tsung安装使用的详细解说,主要针对xmpp的服务端(比如openfire的测试),编写测试场景的脚本配置详细说明。本人使用的是ubuntu操作系统、Tsung1.4.1
tsung是一个非常好用的压力测试软件,基于erlang语言,支持多种协议如xmpp,http,mysql,支持集群,高效率,可以用一台普通的机器压垮几台性能强大的服务器。 针对消息通知服务xmpp服务器,可以用tsung来测试消息...
tsung 测试 java erlang
tsung里面测试websocket的插件含 websocket.xml 等
tsung-react-stats 从 json 报告中显示 tsung 统计信息
tsung安装使用,参数说明,模拟openfire注册用户,模拟用户openfire登录、状态更改、发送消息,对openfire长时间压力测试
黄宗伟的个人网站 该存储库包含黄宗伟个人网站的源文件(html,标签,css,js等)。
tsung高并发测试工具搭建(自己亲测,详细的一逼),改文档是自己一步一步摸索出来的,主要是安装tsung整个过程很详细,搭过的人,知道tsung的搭建依赖很恶心,不是一时半会能搞出来的
压力测试 压力测试 tsung linux
tsung+erlang测试工具,初学者应用必备,内部放置tsung源程序文件和erlang文件
关于tsung工具的安装步骤以及使用过程中会遇到的常见问题解答
tsung为一个开源的多协议分布式负载测试工具,使用erlang语言开发的。具体安装使用可以参考URL:http://www.51ste.com/share/det-222.html
tsung安装包,linux下进行压力测试的工具
Openfire 3.9.3 Load Test Tsung配置xml,10万用户下集群测试的Tsung压力测试工具的jabber_cluster.xml,session 5分钟
tsung的测试脚本,包含发送单人消息,群组消息,获取花名册等
—tsung-1.5.0.tar.gz —libtemplate-perl_2.20.orig.tar.gz —gnuplot-4.4.0.tar.gz —otp_src_R15B.tar.gz —perl-HTML-Tagset-3.10-2.1.1.noarch.rpm —perl-HTML-Parser-3.55-1.fc6.x86_64.rpm —...
这个包是什么Tsung是多协议分布式负载测试工具。 它可用于测试基于IP的客户端/服务器应用程序(支持的协议:HTTP,WebDAV,SOAP,PostgreSQL,MySQL,LDAP,MQTT,AMQP和Jabber / XMPP)的可伸缩性和性能。 可以找到...
介绍Tsung的负载测试 我是谁? Radek Szymczyszyn XMPP / MongooseIM工程师 / / 什么是负载测试? 性能测试的类型: 在特定负载下进行测试-在一个4核,64GiB RAM盒上,如果有10万用户登录并彼此交换消息,则...