Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Tsung first test installation     - Use a soft Raid play multiple SSD hard drive performance and enhance data security (Linux)

- ARM platform compiler installation Golang (Linux)

- Linux server Php injection prevention (Linux)

- Source Analysis: Java object memory allocation (Programming)

- OpenWRT environment to build (Linux)

- sed command (Linux)

- Linux System Getting Started Learning: DeVeDe installed on Linux to create a video DVD (Linux)

- Linux system crash (no such file or directory) How to rescue database (Linux)

- CentOS7 installation configuration (Server)

- View processes and threads under Linux (Linux)

- Commonly used Linux system camouflage method (Linux)

- Linux Network Analysis Tcpdump Command Guide (Linux)

- 32-bit and 64-bit integer in PHP and MySQL range (Database)

- Python class of operator overloading (Programming)

- CentOS 6.5 Linux System Customization and Packaging Quick Implementation Script (Linux)

- xCAT Installation Kit (Linux)

- ntop monitoring software configuration and installation (Linux)

- Linux SSH remote connection service slow Solutions (Linux)

- To convert into a binary search tree sorted doubly linked list (Programming)

- CentOS 6.6 x64 Oracle Database 11gR2 RAC automated installation scripts (Database)

 
         
  Tsung first test installation
     
  Add Date : 2017-04-13      
         
         
         
  Tsung is an open source erlang of a stress testing tool that can test includes HTTP, WebDAV, Mysql, PostgreSQL, LDAP, and XMPP / Jabber server and so on. For HTTP test, Tsung support HTTP 1.0 / 1.1, contains the session recording a proxy mode supports GET, POST and PUT and DELETE methods, support and Cookie basic WWW authentication, and also supports SSL.

Download reference tsung official website: http: //tsung.erlang-projects.org/

Tsung must install erlang

1. Install erlang

1.sudo apt-get install erlang erlang-src gnuplot perl5

2. Verify whether the installation was successful erlang

   erl

Erlang R17B01
(Erts-5.7.4) [source] [64-bit] [smp: 2: 2] [rq: 2] [async-threads: 0] [hipe] [kernel-pool: false]
Eshell V5.7.4 (abort with ^ G)

4. Enter the path to the target file download

cd / opt / apps

5. Download Tsung installation package

      wget http://tsung.erlang-projects.org/dist/tsung-1.5.1.tar.gz

6. Unzip the installation package

chmod 777 tsung-1.5.1.tar.gz
tar zxvf tsung-1.5.1.tar.gz

7. compile and install

cd tsung-1.5.1 /
./configure tsung
make

Tsung enter the command line - v displays the version number Tsung version 1.5.1, the installation was successful

Installation error: "build main app boot script ... make: *** [priv / tsung.boot] Error 1"

This is due to erlang version is too low due to, update under erlang version.

Creating the configuration file for the server

The default configuration file exists in the ~ / .tsung / tsung.xml, the command line is not familiar with the students can use ctrl + h to hide this folder are displayed.

 Copy need to be configured from /tsung/examples/jabber_register.xml test sample configuration

Sample configuration code is as follows:

< ? Xml version = "1.0"?> < ! DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd"> < Tsung loglevel = "notice" dumptraffic = "false" version = "1.0">     < Clients>     < Client host = "localhost" use_controller_vm = "true">     < / Client>   < / Clients> < Servers>   < Server host = '127.0.0.1' port = '5222' type = 'tcp' /> < / Servers>   < -! Register 200000 users in less than 15 minutes -> < Load>   < Arrivalphase phase = "1" duration = "15" unit = "minute">     < Users maxnumber = "200000" interarrival = "0.0025" unit = "second"> < / users>   < / Arrivalphase>   < / Load> < Options>   < Option type = "ts_jabber" name = "global_number" value = "5"> < / option>   < Option type = "ts_jabber" name = "userid_max" value = "200000"> < / option>   < Option type = "ts_jabber" name = "domain" value = "erlang-projects.org"> < / option>   < Option type = "ts_jabber" name = "username" value = "tsung"> < / option>   < Option type = "ts_jabber" name = "passwd" value = "tsung"> < / option> < / Options> < Sessions>   < Session probability = "100" name = "jabber-example" type = "ts_jabber">         < Request>       < Jabber type = "connect" ack = "local"> < / jabber>     < / Request>         < Request>       < Match do = "abort" when = "match"> error < / match>       < Jabber type = "register" ack = "local" id = "new"> < / jabber>     < / Request>         < Request>       < Jabber type = "close" ack = "local">     < / Request>   < / Session> < / Sessions> < / Tsung> Modified to address the needs of the test server Add maxusers configuration, if you do not deserve this argument is not about creating a user in 1000 to create a < Clients > < Client host = "localhost" use_controller_vm = "true" maxusers = "30000" > < / Client > < / Clients > This configuration is the meaning, create 20,000 users for the server, where the user name tsungXXX, password tsungXXX, where XXX is 1 to userid_max each step is 1. < Options > < Option type = "ts_jabber" name = "global_number" value = "5" > < / option> < Option type = "ts_jabber" name = "userid_max" value = "200000" > < / option> < Option type = "ts_jabber" name = "domain" value = "erlang-projects.org" > < / option> < Option type = "ts_jabber" name = "username" value = "tsung" > < / option> < Option type = "ts_jabber" name = "passwd" value = "tsung" > < / option> < / Options > run tsung -fjabber_register.xml start After running, tsung saves the data in ~ / .tsung / log / directory ps: If you have problems or configuration files under the intermediate run forced to close, and sometimes the process of the case is not closed, the next run error occurs, use the following command to see if there is not to kill the process.
     
         
         
         
  More:      
 
- Oracle View Object Information (Database)
- The correct way to open Xcode - Debugging (Programming)
- CentOS install video converter FFmpeg and cutting tools segmenter (Linux)
- Firewall Configuration Red Hat Enterprise Linux 4 (Linux)
- Java string equal size comparison (Programming)
- Linux run queue process scheduling (Programming)
- Ceph tuning --Journal and tcmalloc (Server)
- Use Bosh deploy CloudFoundry problems encountered on OpenStack (Server)
- PostgreSQL query lock and kill the process (Database)
- Oracle Data File Management (Database)
- Talk about the Linux folder permissions issue again (Linux)
- MySQL and MariaDB traditional master-slave cluster configuration (Database)
- C # and JavaScript arrays to re-summary (Programming)
- How to deploy Icinga client (Server)
- Linux Telnet access Windows 7 configuration procedure (Linux)
- Docker in the development and practice of IFTTT (Server)
- Source Analysis: Java object memory allocation (Programming)
- Story timestamp and time zones: daily programmer (Programming)
- Ubuntu iptables prevent IP attacks (Linux)
- 8 Git tips (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.