tsung压力测试——安装
在安装之前确保安装了以下工具:
erlang 必须要有安装java环境,要不然不成功
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
- # wget http://www.erlang.org/download/otp_src_R14B04.tar.gz
- # tar -zxvf otp_src_R14B04.tar.gz
- # cd otp_src_R14B04
- # ./configure --prefix=/usr/local/erlang
- # make
- # make install
注意:如果出现 "configure: error: No curses library functions found "错误,尝试安装:
- yum install -y ncurses-devel
下载并安装Tsung
- # wget http://tsung.erlang-projects.org/dist/tsung-1.4.2.tar.gz
- # tar -zxvf tsung-1.4.2.tar.gz
- # cd tsung-1.4.2
- # ./configure
- # make
- # make install
下载并安装perl Template,用于生成报告模版
- # wget http://cpan.org/modules/by-module/Template/Template-Toolkit-2.24.tar.gz
- # tar -zxvf Template-Toolkit-2.24.tar.gz
- # cd Template-Toolkit-2.24
- # perl Makefile.PL
- # make
- # make test
- # make install
下载并安装gnuplot,用于聊天生成
- # yum install -y gnuplot gd libpng zlib
注意:安装成后添加erlang、tsung环境变量
- # vim /etc/profile
- export PATH=$PATH:$JAVA_HOME/bin:/usr/local/erlang/bin:/usr/local/tsung/bin:/usr/local/nginx/sbin:$PATH(修改自己实际变量)
- :x保存,退出
- # source /etc/profile
- 不报错则成功
- # tsung -v
- # erl -v
- 测试
二、使用
- # tsung start
- Starting Tsung
- "Log directory is: /root/.tsung/log/20140817-1801"
更多命令:
- Usage: tsung <options> start|stop|debug|status
- Options:
- -f <file> set configuration file (default is ~/.tsung/tsung.xml)
- (use - for standard input)
- -l <logdir> set log directory (default is ~/.tsung/log/YYYYMMDD-HHMM/)
- -i <id> set controller id (default is empty)
- -r <command> set remote connector (default is ssh)
- -s enable erlang smp on client nodes
- -p <max> set maximum erlang processes per vm (default is 250000)
- -m <file> write monitoring output on this file (default is tsung.log)
- (use - for standard output)
- -F use long names (FQDN) for erlang nodes
- -w warmup delay (default is 10 sec)
- -v print version information and exit
- -6 use IPv6 for Tsung internal communications
- -h display this help and exit
进入Log目录下可以看到生成的报表信息
- # cd /root/.tsung/log/20140817-1801
- # ls -a
- match.log tsung_1b.xml tsung_controller@iZ234cp44ihZ.log tsung.log
生成图形报表,需要依赖项 gnuplot、perl5及template模板
- # yum -y install perl5 gnuplot libtemplate-perl
进入需要生成图形报表的Log目录,如/root/.tsung/log/20140817-1801
- # /usr/local/tsung/lib/tsung/bin/tsung_stats.pl
- creating subdirectory data
- creating subdirectory gnuplot_scripts
- creating subdirectory images
- warn, last interval (0) not equal to the first, use the first one (10)
- No data for Event
- No data for Errors
附录
http://www.awaimai.com/628.html
http://blog.csdn.net/jeepxiaozi/article/details/42784201
./configure
tsung压力测试——安装的更多相关文章
- Tsung压力测试:Openfire
环境准备 安装Tsung.安装openfire.安装Spark 要对openfire进行压力测试,因此我们主要讲解如何利用jabber_register.xml在openfire上面注册用户,以及利用 ...
- tsung -- 压力测试利器
Tsung 是一个压力测试工具,可以测试包括HTTP, WebDAV, PostgreSQL, MySQL, LDAP, and XMPP/Jabber等服务器.针对 HTTP 测试,Tsung 支持 ...
- centos7.5 ab压力测试安装和swoole压力测试
Apache Benchmark(简称ab) 是Apache安装包中自带的压力测试工具 ,简单易用 1.ab安装 yum -y install httpd-tools 2.ab参数详解,传送门:htt ...
- CentOS7 ab压力测试安装
①.ab(apache benchmark)安装 命令: yum -y install httpd-tools ②.ab测试的命令参数 命令: ab 或 ab -help 显示命令参数如下 ③.ab的 ...
- CentOS7 ab压力测试安装与解释
https://blog.csdn.net/qq_39399966/article/details/102576949 Step 1 - ab (apache benchmark) 安装 yum -y ...
- Tsung压力测试工具安装使用
工具安装 1)unixODBC ./configure; make; make install 或者yum安装 2)ncurses-devel ./configure; make; make inst ...
- tsung压力测试——tcp测试tsung.xml配置模版说明
<?xml version="1.0"?> <!DOCTYPE tsung SYSTEM "/usr/local/share/tsung/tsung-1 ...
- jmeter 压力测试安装教程
条件: 安装java8,没有安装点击:https://www.cnblogs.com/xdtx/p/10188767.html 进入官网下载:http://jmeter.apache.org/ 配置环 ...
- tsung压力测试环境部署详细步骤(内附安装包)
操作系统: Redhat 6.3.Redhat6.5 .centos7.4(这些版本已验证过) tsung版本: tsung-1.6.0 下载地址: 链接: https://pan.baidu.com ...
随机推荐
- (最长不降子序列)最少拦截系统 -- hdu -- 1257
http://acm.hdu.edu.cn/showproblem.php?pid=1257 最少拦截系统 Time Limit: 2000/1000 MS (Java/Others) Memo ...
- hdu 5084 前缀和预处理
http://acm.hdu.edu.cn/showproblem.php?pid=5084 给出矩阵M,求M*M矩阵的r行c列的数,每个查询跟前一个查询的结果有关. 观察该矩阵得知,令ans = M ...
- 为什么有时候在mac中启动一些应用时会跳的Windows中
因为有些格式是尽在windows情况下才支持的,如果mac上安装了虚拟的Windows,则执行此类应用(例如:.bat 文件)时就会启动Windows虚机
- B - Avoiding a disaster
Description Percy likes to be punctual. So much so that he always keeps three watches with him, so t ...
- FormatSQL
核心提示:在一些论坛,常看到有人拼接SQL的时候,喜欢直接硬拼,结果就是出现一大堆加号和单引号,不仅写起来麻烦(你得小心该连续写多少个单引号),SQL的可读性也相当差....稍微好一点的方法是,使用Q ...
- C# .NET 获取枚举值的自定义属性
一.定义一个类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using ...
- .net core Area独立成单独的dll文件
以前做MES项目遇到过这个情况,一个项目有7到8个大模块,生产.质量.物耗.电子看板.设备等,每个模块都有大量业务,这样使用mvc结构如果所有模块放在一个目录中,那么势必会产生很多问题,各模块代码不好 ...
- C#后台代码获取程序集资源文件
资源会被打包在程序集内部. 选择这种生成方式后,该资源文件会被嵌入到该应用的程序集中,就是说打开生成的应用程序目录是看不到这个文件的. 可以用相对于当前的XAML文件的相对Uri访问,<Imag ...
- Lerning Entity Framework 6 ------ Defining Relationships
There are three types of relationships in database. They are: One-to-Many One-to-One Many-to-Many Th ...
- Akka(42): Http:身份验证 - authentication, authorization and use of raw headers
当我们把Akka-http作为数据库数据交换工具时,数据是以Source[ROW,_]形式存放在Entity里的.很多时候除数据之外我们可能需要进行一些附加的信息传递如对数据的具体处理方式等.我们可以 ...