在安装之前确保安装了以下工具:

erlang 必须要有安装java环境,要不然不成功

  1. yum install gcc

    yum install gcc-c++

    yum install libtool

    yum install libtool-ltdl-devel

    yum install ncurses-devel

    yum install unixODBC.x86_64

    yum install unixODBC-devel.x86_64

    yum install crypto-utils.x86_64

    yum install qca2.x86_64

    yum install mesa*

    yum install mesa-libGLw.x86_64

    yum install openssl

    yum install openssl-devel

    yum install make kernel-devel m4

    yum install xsltproc fop

    yum install freeglut*

    yum install gtk+extra

    yum install gtk*

    yum install dos2unix

    yum install git unzip libssl-dev libmicrohttpd-dev cmake pkg-config libgtk2.0-dev

    yum install -y gcc gcc-c++ libtool libtool-ltdl-devel ncurses-devel unixODBC.x86_64 unixODBC-devel.x86_64 crypto-utils.x86_64 qca2.x86_64 mesa* mesa-libGLw.x86_64 openssl openssl-devel make kernel-devel m4 xsltproc fop freeglut* gtk+extra gtk* dos2unix git unzip libssl-dev libmicrohttpd-dev cmake pkg-config libgtk2.0-dev

下载并安装erlang
  1. # wget http://www.erlang.org/download/otp_src_R14B04.tar.gz
  2. # tar -zxvf otp_src_R14B04.tar.gz
  3. # cd otp_src_R14B04
  4. # ./configure --prefix=/usr/local/erlang
  5. # make
  6. # make install

注意:如果出现 "configure: error: No curses library functions found "错误,尝试安装:

  1. yum install -y ncurses-devel

下载并安装Tsung

  1. # wget http://tsung.erlang-projects.org/dist/tsung-1.4.2.tar.gz
  2. # tar -zxvf tsung-1.4.2.tar.gz
  3. # cd tsung-1.4.2
  4. # ./configure
  5. # make
  6. # make install

下载并安装perl Template,用于生成报告模版

  1. # wget http://cpan.org/modules/by-module/Template/Template-Toolkit-2.24.tar.gz
  2. # tar -zxvf Template-Toolkit-2.24.tar.gz
  3. # cd Template-Toolkit-2.24
  4. # perl Makefile.PL
  5. # make
  6. # make test
  7. # make install

下载并安装gnuplot,用于聊天生成

  1. # yum install -y gnuplot gd libpng zlib

注意:安装成后添加erlang、tsung环境变量

  1. # vim /etc/profile
  2. export PATH=$PATH:$JAVA_HOME/bin:/usr/local/erlang/bin:/usr/local/tsung/bin:/usr/local/nginx/sbin:$PATH(修改自己实际变量)
  3. :x保存,退出
  4. # source /etc/profile
  5. 不报错则成功
  6. # tsung -v
  7. # erl -v
  8. 测试

二、使用

在root文件夹下新建.tsung目录,用于存放log和xml配置,测试配置文件可参考/usr/local/tsung/share/doc/tsung/examples/目录下配置

运行,默认执行脚本~/.tsung/tsung.xml配置
  1. # tsung start
  2. Starting Tsung
  3. "Log directory is: /root/.tsung/log/20140817-1801"

更多命令:

  1. Usage: tsung <options> start|stop|debug|status
  2. Options:
  3. -f <file>     set configuration file (default is ~/.tsung/tsung.xml)
  4. (use - for standard input)
  5. -l <logdir>   set log directory (default is ~/.tsung/log/YYYYMMDD-HHMM/)
  6. -i <id>       set controller id (default is empty)
  7. -r <command>  set remote connector (default is ssh)
  8. -s            enable erlang smp on client nodes
  9. -p <max>      set maximum erlang processes per vm (default is 250000)
  10. -m <file>     write monitoring output on this file (default is tsung.log)
  11. (use - for standard output)
  12. -F            use long names (FQDN) for erlang nodes
  13. -w            warmup delay (default is 10 sec)
  14. -v            print version information and exit
  15. -6            use IPv6 for Tsung internal communications
  16. -h            display this help and exit

进入Log目录下可以看到生成的报表信息

  1. # cd  /root/.tsung/log/20140817-1801
  1. # ls -a
  2. match.log  tsung_1b.xml  tsung_controller@iZ234cp44ihZ.log  tsung.log

生成图形报表,需要依赖项 gnuplot、perl5及template模板

  1. # yum -y install perl5 gnuplot libtemplate-perl

进入需要生成图形报表的Log目录,如/root/.tsung/log/20140817-1801

  1. # /usr/local/tsung/lib/tsung/bin/tsung_stats.pl
  2. creating subdirectory data
  3. creating subdirectory gnuplot_scripts
  4. creating subdirectory images
  5. warn, last interval (0) not equal to the first, use the first one (10)
  6. No data for Event
  7. No data for Errors
 
 

附录

http://www.awaimai.com/628.html

http://blog.csdn.net/jeepxiaozi/article/details/42784201

./configure

tsung压力测试——安装的更多相关文章

  1. Tsung压力测试:Openfire

    环境准备 安装Tsung.安装openfire.安装Spark 要对openfire进行压力测试,因此我们主要讲解如何利用jabber_register.xml在openfire上面注册用户,以及利用 ...

  2. tsung -- 压力测试利器

    Tsung 是一个压力测试工具,可以测试包括HTTP, WebDAV, PostgreSQL, MySQL, LDAP, and XMPP/Jabber等服务器.针对 HTTP 测试,Tsung 支持 ...

  3. centos7.5 ab压力测试安装和swoole压力测试

    Apache Benchmark(简称ab) 是Apache安装包中自带的压力测试工具 ,简单易用 1.ab安装 yum -y install httpd-tools 2.ab参数详解,传送门:htt ...

  4. CentOS7 ab压力测试安装

    ①.ab(apache benchmark)安装 命令: yum -y install httpd-tools ②.ab测试的命令参数 命令: ab 或 ab -help 显示命令参数如下 ③.ab的 ...

  5. CentOS7 ab压力测试安装与解释

    https://blog.csdn.net/qq_39399966/article/details/102576949 Step 1 - ab (apache benchmark) 安装 yum -y ...

  6. Tsung压力测试工具安装使用

    工具安装 1)unixODBC ./configure; make; make install 或者yum安装 2)ncurses-devel ./configure; make; make inst ...

  7. tsung压力测试——tcp测试tsung.xml配置模版说明

    <?xml version="1.0"?> <!DOCTYPE tsung SYSTEM "/usr/local/share/tsung/tsung-1 ...

  8. jmeter 压力测试安装教程

    条件: 安装java8,没有安装点击:https://www.cnblogs.com/xdtx/p/10188767.html 进入官网下载:http://jmeter.apache.org/ 配置环 ...

  9. tsung压力测试环境部署详细步骤(内附安装包)

    操作系统: Redhat 6.3.Redhat6.5 .centos7.4(这些版本已验证过) tsung版本: tsung-1.6.0 下载地址: 链接: https://pan.baidu.com ...

随机推荐

  1. 中国移动物联网平台数据转发 c# 控制台程序

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.N ...

  2. 服务化实战之 dubbo、dubbox、motan、thrift、grpc等RPC框架比较及选型

    转自: http://blog.csdn.net/liubenlong007/article/details/54692241 概述 前段时间项目要做服务化,所以我比较了现在流行的几大RPC框架的优缺 ...

  3. Codeforces816B Karen and Coffee 2017-06-27 15:18 39人阅读 评论(0) 收藏

    B. Karen and Coffee time limit per test 2.5 seconds memory limit per test 512 megabytes input standa ...

  4. hive如何执行一条sql的例子

    SQL如何在Mapreduce执行 左边是数据表,右边是结果表,这条 SQL 语句对 age 分组求和,得到右边的结果表,到底一条简单的 SQL 在 MapReduce 是如何被计算, MapRedu ...

  5. C# 函数式编程及Monads.net库

    函数式编程中,一切皆为函数,这个函数一般不是类级别的,其可以保存在变量中,可以当做参数或返回值,是函数级别的抽象和重用,将函数作为可重用的基本模块,就像面向对象中一切皆为对象,把所有事物抽象为类,面向 ...

  6. StringBuffer 去掉最后一个字符

    StringBuffer stringBuffer=new StringBuffer (); stringBuffer.append("aaa,"); stringBuffer.d ...

  7. C#之简易计算器设计

    在学完了C#的方法和数据类型之后,写了一个简易的计算器的界面.本次界面具备加减乘除求余等五项运算.不过存在一点缺陷就是无法判断输入数据的类型,是整数还是小数,由于目前所学知识有限,等学到以后再进行完善 ...

  8. Class和普通js构造函数的区别

    Class 在语法上更加贴合面向对象的写法 Class 实现继承更加易读.易理解 更易于写 java 等后端语言的使用 本质还是语法糖,使用 prototype Class语法 typeof Math ...

  9. 转---谈谈HTTP协议中的短轮询、长轮询、长连接和短连接

    作者:伯乐在线专栏作者 - 左潇龙 http://web.jobbole.com/85541/ 如有好文章投稿,请点击 → 这里了解详情 引言 最近刚到公司不到一个月,正处于熟悉项目和源码的阶段,因此 ...

  10. 一步步Cobol 400 上手自学入门教程01 - 基础概念

    先学习基础概念 1.COBOL字符:包含: User-defined words 用户定义字符 ŸSystem-names ŸReserved words 关键字 2.用户定义字符User-defin ...