下载  >  开发技术  >  其它  > tsung最新用户手册

tsung最新用户手册 评分:

tsung最新用户手册,包含HTTP, WebDAV, SOAP, PostgreSQL, MySQL, LDAP, and Jabber/XMPP servers压力测试模版,错误说明等。
ng Tsung manual CONTENTS 6,6Se essions 申 16 6.6.1 Thinktime 16 66 Http 16 6.6.3 Jabber/XMPP 6.6.4 PostgreSQL 19 .6.5 MySQL 6.6.6 LDAP ...21 6.7 Advanced features 7.1 Dynamic substitutions 7.2 Reading external file 6.7.3 Dynamic variables 25 6.7.4 Checking the servers response 26 6.7.5L 7 Statistics and reports 28 7.1 Available stats 28 7.2 Des 2 7.3 Generating the report 4 Tsung summary 7.5 Graphical overview 29 References cknowledgments 30 A Frequently Asked Questions 30 A 1 Can't start distributed clients: timeout error .30 A2 Tsung crashes when I start it 32 A 3 Why do i have error_connect_emfile errors? 32 A4 Tsung still crashes/fails when I start it! A.5 Can i dynamically follow redirect with Http2 A6 What is the format of the stats file tsung og A7 How can I compute percentile/quartiles/median for transactions or requests response time ?34 A 8 How can I specify the number of concurrent users A g SNMP monitoring doesn t work?! b Errors list C CHANGELOG Tsung Users manual: ILLp: //Sung erla: 1y-FLDjecLs ory buted loac testing toc ng /Introduction 1 Introduction l. What is Tsung Tsung(formerly IDX-Tsunami) is a distributed load testing tool. It is protocol-independent and can cur- It is distributed under the GNU General Public License version2, LDAP and Jabber/XMPP servers rently be used to stress Http, Webdav, Soap, Postgresql, Mysql 1. 2 What is erlang and why is it important for Tsung Tsungs main strength is its ability to simulate a huge number of simultaneous user from a single CPU When used on cluster you can generate a really impressive load on a server with a modest cluster, easy to set-up and to maintain Tsung is developed in Erlang and this is where the power of Tsung resides Erlang is a concurrency-oriented programning language. Tsung is based on the Erlang OTP(Open Transaction Platform) and inherits several characteristics from Erlang Performance: Erlang has been made to support hundred thousands of lightweight processes in a single virtual machine Scalability: Erlang runtime environment is naturally distributed, promoting the idea of process's location transparency. Fault-tolerance: Erlang has been built to develop robust, fault-tolerant systems. As such, wrong answer sent from the server to Tsung does not make the whole running benchmark crash MoreinformationsonErlangonhttp://www.erlang.organdhttp://www.erlang-projects g 1.3 Tsung background History: Tsung development was started by Nicolas Niclausse in 2001 as a distributed jabber load stres toolforinternaluseathttp://idealX.com/Ithasevolvedasanopen-sourcemulti-protocol loadtestingtoolseveralmonthslaterThehttpsupportwasaddedin2003,andthistoolhasbeen usedforseveralindustrialprojectsItisnowhostedbyErlang-projects,andsupportedbyhttp //process-one.ne=/Thelistofcontributorsisavailableinthesourcearchive(https: //svn. process-one. net/tsung/trunK/CONTRIBUTORS It is an industrial strength implementation of a stochastic model for real users simulation User events distribution is based on a Poisson Process. More information on this topic in Z. Liu, N. Niclausse, et C. Jalpa-Villanueva. Traffic Model and Performance evaluation of web Servers. Performance evaluation, Volume 46, Issue 2-3, October 200/ This model has already been tested in the INRIA WAGON research prototype(Web trAffic Gener atorandbenchMark).Wagonwasusedinthehttp://www.vthd.org/project(veryHigh Broadband IP/WDM test platform for new generation Internet applications, 2000-2004) Tsung has been used for very high load tests Jabber/AMPP protocol 90 000 simultaneous jabber users on a 4-node Tsung cluster (xSun V240+ I Sun V440) Tsung Users manual: ILLp: //Sung erla: 1y-FLDjecLs ory Page 4 buted loac testing toc ng 2. Features 10 000 simultaneous users. Tsung was running on a 3-computers cluster(CPu 800Mhz) httpandhttpsprotocol 2 000 simultaneous users. Tsung were running on a 4-computers cluster. The tested platform reached 3 000 requests per second Tsung has been used at DGI (Direction Generale des impots ) French finance ministry Cap Gemini ernst Young IFP(Institut Francais du Petrole): French Research Organization for Petroleum Liberty su SunTmFortheirMooddleroomsplatformonNiagaraprocessorshttp://blogs.suncom/kevinr/ resource/Moodle- Sun-RA pdf 2 Features 2.1 Tsung main features High Performance: Tsung can simulate a huge number of simultaneous users per physical computer It can simulates thousands of users on a single CPU(Note: a simulated user is not always active: it can be idle during a thinktime period). Traditional injection tools can hardly go further than a few hundreds(Hint: if all you want to do is requesting a single URL in a loop, use ab; but if you want to build complex scenarios with extended reports, Tsung is for you) Distributed the load can be distributed on a cluster of client machines Multi-protocols using a plug-in system Http(bOth standard web traffic and soap). webdav, Jab ber/XMPP and PostgreSQL are currently supported Experimental LDAP and MysQl plugins were included in the 1.3.0 release SSL support Several lp addresses can be used on a single machine using the underlying Os IP Aliasin OS monitoring(CPU, memory and network traffic)using Erlang agents on remote servers or SNMP XML configuration system: complex user's scenarios are written in XML. Scenarios can be written withasimplebrowserusingtheTsungrecorder(httpandPostgresqlonly) Dynamic scenarios: You can get dynamic data from the server under load(without writing any code) and re-inject it in subsequent requests. You can also loop, restart or stop a session when a string(or regexp) matches the server response Mixed behaviours: several sessions can be used to simulate different type of users during the same benchmark. You can define the proportion of the various behaviours in the benchmark scenario Stochastic processes: in order to generate a realistic traffic, user thinktimes and the arrival rate can be randomize using a probability distribution(currently exponential) Tsung Users manual: ILLp: //Sung erla: 1y-FLDjecLs ory Page 5, buted loac testing toc ng Http related features 2.2 httP related features Http/1.0 and Http/1.i support GET, POST, PUT, DELETE and HEAD requests Cookies: Automatic cookies management GET If-Imodified since' type of request WWW-authentication basic User△ gent suppor AnyhttpHeaderscanbeadded proxy mode to record sessions using a web browser SoaPSupportusingthehttpmode(thesoapactionhttpheaderishandled Http server or proxy server load testing 2. 3 WEBDAV related features The Webdav plugin is a superset of the Http plugin It adds the following features Methods implemented: DELETE, CONNECT, PROPFIND, PROPPATCH, COPY, MOVE, LOCK UNLOCK MKCOL REPORT. OPTIONS Recording of DEPtH, If, tIMEOUT OVErWrite, destination, URl and loCK-TOKEN Headers 2.4 JAbber/XMPP related features Authentication(plain-text, digest and sip-digest) presence and register messages Chat messages to online or offline users Roster set and get reguest Global users' synchronization can be set on specific actions raw XMl messages 2.5 PostgreSQL related features Basic and md5 Authentication Basic Queries(extended queries not yet supported Proxy mode to record sessions Tsung Users manual: ILLp: //Sung erla: 1y-FLDjecLs ory Page 6 buted loac testing toc ng 3. Installati MySOL related features 2.6 MySQL related features This plugin is experimental. It works only with MySQL version 4.1 and higher Secured Authentication method only(MySQL >= 4.1 Basic Queries 2.7 LDAP related features This plugin is experimental add, modify and search queries starttls(only with r12B-0 Erlang and up) 2.8 Complete reports set Measures and statistics produced by Tsung are extremely feature-full They are all represented as a graphic Tsung produces statistics regarding Performance: response time, connection time, decomposition of the user scenario based on request grouping instruction(called transactions), requests per second Errors: Statistics on page return code to trace errors Target server behaviour: An Erlang agent can gather information from the target server(s). Tsung produces graphs for CPU and memory consumption and network traffic. SNMP is also supported Note that Tsung takes care of the synchronization process by itself. Gathered statistics are <synchr nized》 It is possible to generate graphs during the henchmark as statistics are gathered in real-time 2.9 Highlights sung has several advantages over other injection tools High performance and distributed benchmark: You can use Tsung to simulate tens of thousands of Ⅴ irtual users Ease of use: The hard work is already done for all supported protocol. No need to write complex scripts. Dynamic scenarios only requires small trivial piece of code Multi-protocol support: Tsung is for example one of the only tool to benchmark SOAP applications Monitoring of the target server(s)to analyze the behaviour and find bottlenecks. For example, it has been used to analyze cluster symmetry(is the load properly balanced and to determine the best combination of machines on the three cluster tiers (Web engine, eJB engine and database 3 nstallation This package has been tested on Linux, FreeBSD and Solaris. It should work on Erlang supported platforms (Linux, Solaris, * BSD, Win32 and MacOS-X) Tsung Users manual: ILLp: //Sung erla: 1y-FLDjecLs ory Page 7 buted loac testing toc ng Dependencies 3.1 Dependencies Erlang/otpRiob-0andup(ht=p://www.erlang.org/download.htmi).Erlangisnow part of fedora and debian repository extendedregexpmodule(usedfordynamicvariables):gregexp.erlavailableathttp://www cellicium. com/erlang/contribs/. The module is included in the source and binary dis- tribution of Tsung. It is released under the EPl License pgsqlmodulemadebyChristianSunesson(forthePostgresqlplugin):sourcesavailableathttp: //junger. sourceforge. net/. The module is included in the source and binary distribution of Tsung. It is released under the EPL License. mysql module made by Magnus Ahltorp Fredrik Thulin(for the mysql plugin): sources available athttp://www.stacken.kth.se/projekt/yxa/.Themodifiedmoduleisincludedinthe source and binary distribution of Tsung It is released under the three- clause BSD License ldapmodule(fortheLdaPplugin):sourcesavailableathttp://jungerl.sourceforge. net/. The module is included in the source and binary distribution of Tsung. It is released under the gPl license mochiweblibs(forxpathparsingoptionallyusedfordynamicvariablesinthehttpplugin sourcesavailableathttp://code.googlecom/p/mochiweb/.Themoduleisincluded in the source and binary distribution of Tsung. It is released under the MIT License gnuplot and perl5(optional; for graphical output with tsung_stats. pl script). The Template ToolkitisusedforHtmlreports(seehttp://template-toolkit.org/) for distributed tests, you need an ssh access to remote machines without pass word(use a rsa/dSa key without pass-phrase or ssh-agent)(rsh is also supported) 3.2 Compilation /configure make make insta⊥ 3.3 Configuration The default configuration file is w /.tsung/tsung. xml( there are several sample files in /usr/ share/doc/tsung/ examples) Log files are saved in-/tsung/log/. a new sub-directory is created for each test using the current date as name(v/. tsung/1og/20040217-09: 40 for ex) 3.4 Feedback UsetheTsungmailinglist(seehttps://1iss.process-one.net/mailman/listinfo/tsung-users ifyouhavesuggestionsorquestionsaboutTsungYoucanalsousethebugtrackeravailableathttps:// support. process-one. net/browse/TSUN You can also try the #tsung IRC channel on Freen Tsung Users manual: ILLp: //Sung erla: 1y-FLDjecLs ory Page 8 buted loac testing toc ng 4. Benchmark approach 4 Benchmark approach 4.1 Http/wEbdaV benchmark approach 4.1.1 Benchmarking a Web server 1. Record one or more sessions: start the recorder with: tsung recorder, and then configure your browser to use Tsung proxy recorder(the listen port is 8090). A session file will be created. For Httpsrecordingusehttp://ssl-inSteadofhttps://inyourbrowser 2. Edit /organize scenario, by adding recorded sessions in the configuration file 3. Write small code for dynamic parts if needed and place dynamic mark-up in the scenario 4. Test and adjust scenario to have a nice progression of the load. This is highly dependent of the application and of the size of the target server(s). Calculate the normal duration of the scenario and use the interarrival time between users and the duration of the phase to estimate the number of simultaneous users for each given phase 5. Launch benchmark with your first application parameters set-up: tsung start 6. Wait for the end of the test or stop by hand with tsung stop(reports can also be generated during the test(see87: the statistics are updated every 10 seconds). For a brief summary of the current activity, use tsung status 7. Analyze results, change parameters and relaunch another benchmark 4.1.2 WEBDAV It's the same approach as Http: first you start to record one or more sessions with the recorder tsung p webdav recorder 4.1.3 Benchmarking a proxy server BydefaultthehttppluginisusedtobenchmarkhttpserversButyoucanalsobenchmarkHttp Proxy servers. To do that, you must add in the options section Optiontype="tshttp"name=http_use_serveras__proxy"vaiue=true"></opticn> 4.2 LDAP benchmark approach An ldaP plugin for the recorder is not yet implemented, so you have to write the session by yourself; see section 6.6.6 for more information 4.3 PostgresQl benchmark approach Its the same approach as Http: first you start to record one or more sessions with the recorder tsung -p pgsql recorder This will start a proxy listening to port 8090 and will proxy requests to 127.0.0.0: 5432 To choose another port and/or address: tsung -I 5432 -I 10.6.1.1 -P 5433-p pgsql recorder This will start a proxy listening to port 5432 and will proxy requests to 10.6.1.1: 5433 Tsung Users manual: ILLp: //Sung erla: 1y-FLDjecLs ory Page 9, buted loac testing toc ng 4 Benchmark MysQL benchmark approach 4.4 MySQL benchmark approach A MySQL plugin for the recorder is not yet implemented, so you have to write the session by yourself; see section 6.6.5 for more information 4.5 Jabber/XMPP benchmark approach 4.5.1 Overview This paragraph explains how to write a session for Jabber/XMPP There are two differences between Http and Jabber testing There is no recorder for Jabber, so you have to write your sessions by hand(an example is provided in6.6.3b the jabber plugin does not parse XML; instead it uses packet acknowledgments There is no recorder for Jabber, so you have to write your sessions by hand(an example is provided in 6.6.3 4.5.2 Acknowledgments of messages Since the jabber plugin does not parse XML(historically, it was for performance reasons), you must have a way to tell when a request is finished. There are 3 possibilities ack=local as soon as a packet is received from the server, the request is considered as completed. Hence if you use a local ack with a request that do not require a response from the server(presence for ex ) it will wait forever or until a timeout is reached) ack=no_ack as soon as the request is send, it is considered as completed(do not wait for incoming data) ack=global synchronized users. its main use is for waiting for all users to connect before sending mes sages. To do that, set a request with global ack (it can be the first presence msg <request> <jabber type="presence "ack-gIcbal"/></request> You also have to specify the nunber of users to be connected <option type="ts jabber name="global_ number" value=100"></option> To be sure that exactly glokal_number users are started, add the 'maxnumber attribute to users <users maxnumber="100 interarrival=1.0" unit="second"></sers> If you do not specify maxnumber, the global ack will be reset every global number users New in 1.2.2: This version adds an new option for a session. if you set the attribute b idi(for bidirec tional) in the session tag: <session.. bidi ='true'>, then incoming messages from the server will be analyzed. Currently, only roster subscription requests are handled: if a user received a subscription request (presence. type=subscribe'>), it will respond with a <presence type=subscribed> message Tsung Users manual: ILLp: //Sung erla: 1y-FLDjecLs ory Page 10/3

...展开详情
2014-08-17 上传 大小:472KB
举报 收藏
分享
tigase及tsung安装笔记

包括tigase的安装运行,tsung的安装运行,压测结果的信息解析等;

立即下载
Tsung_测试XMPP_安装使用说明

tsung是用erlang开发的一款简单易用的压力测试工具,目前仅支持linux各版本系统安装,有tar.gz和deb两种安装文件, 目前我们测试用的是CentOS或RedHat两种操作系统,因此选择tar.gz安装文件,总的来说tsung工具有以下优点: 1.1 High Performance高效的:一个单独的cpu可以模拟数以千计的用户(因为模拟用户不总是处于激活状态,它有可能在思考的闲置状态) 1.2 Distributed分布式的:可以把负载分布到一系统客户端集群中 1.3Multi-Protocols using a plug-in system多协议支持(通过插件方式实现):当

立即下载
tsung用户手册 linux

压力测试 压力测试 tsung linux

立即下载
html+css+js制作的一个动态的新年贺卡

该代码是http://blog.csdn.net/qq_29656961/article/details/78155792博客里面的代码,代码里面有要用到的图片资源和音乐资源。

立即下载
qBittorrent插件集合(22个)

btetree.py cpasbien.py divxtotal.py ilcorsaronero.py kickass.py leetx.py limetorrents.py linuxtracker.py nyaa.py nyaapantsu.py nyaasi.py pantsu.py psychocydd.py rarbg.py rutor.py skytorrents.py sukebei.py sumotorrent.py tntvillage.py torrent9.py torrentfunk.py zooqle.py

立即下载
万能BIOS刷新工具Universal Flash Utility V8.95

近期在网搜刷新工具时,寻得这组万能刷新工具类型的希缺资源[正宗正版工具软件],特上传bios之家论坛,对号最需要它的爱好者群!软件版权归属原作品发布方,提供与本网站各界爱好者试用,以便交流刷新比较困难的 bios 实际使用经验![[ 其中的895工具是在本论坛首次亮像,=本论坛335469299用户曾在2011年6月29日发表过848的使用资料=各位可划文搜链接[ ==http://bbs.bios.net.cn/?8024== ]看 用户 awb 空间 所存载主题=求万能bios刷写工具flash849.exe-=之=-335469299 -=所回帖发布软件介绍使用参数 参考试用万能 bio

立即下载
压缩包爆破解密工具(7z、rar、zip)

压缩包内包含三个工具,分别可以用来爆破解密7z压缩包、rar压缩包和zip压缩包。

立即下载
服务器CPU天梯图_最全CPU天梯图

主要是服务器CPU天梯图_最全CPU天梯图,文字版,不是图片

立即下载
公司年会滚动抽奖系统

基于HTML5和JS的公司年会抽奖系统。 该抽奖功能描述: 1).随机所有号码并且不重复出现。 2).中过奖的人,不能再进行抽奖。(不会中了2等奖在去中1等奖) 3).可以自定义抽奖的号码(姓名或数字),需要手动添加至HTML5代码中。

立即下载
企业IT架构转型之道:阿里巴巴中台战略思想与架构实战(完整版)

企业IT架构转型之道:阿里巴巴中台战略思想与架构实战(完整版)

立即下载
2018年数模美赛全部题目A~F题(包括英文版,中文版)

这是我2018年参加数模美赛时全部题目A~F题,包括英文版,中文翻译版题目,适合参加数模国赛和美赛的同学熟悉一下题目。

立即下载