Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Tsung first test installation     - Realize screen recording and playback via Linux command (Linux)

- Apache Kafka: the next generation of distributed messaging system (Server)

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

- Using LLVM Clang and Blocks under Linux (Programming)

- Java inheritance initialization problem (Programming)

- Under Ubuntu on how to use iptables firewall (Linux)

- using the ssh command to check the socket / Network Connections (Linux)

- Linux installation and error under codeblocks exclude [Ubuntu 10.04] (Linux)

- Java call by value and by reference (Programming)

- Formatted output printf command (Programming)

- JavaScript notes --Objects (Programming)

- View processes and threads under Linux (Linux)

- Linux garbled file delete method (Linux)

- The signature can not be verified under Debian (Linux)

- How nodeclub constructed Docker image (Server)

- Lambda expressions of evolution (Programming)

- IronPython and C # to interact (Programming)

- How to install the Ruby runtime environment on Mac OS X (Linux)

- Linux platform Oracle MySQL connection (Database)

- Linux command line to put on your coat GUI (Linux)

 
         
  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:      
 
- Installation and deployment of MariaDB under CentOS (Database)
- Using PHP MySQL library (Programming)
- KVM virtualization nested configuration (Server)
- C ++ Object Model Comments (Programming)
- Linux Firewall Builder shorewall (Linux)
- Python: Finding meet the conditions specified in the file directory (Programming)
- Java multi-threaded communications pipeline flow (Programming)
- Python Django direct implementation of sql statement (Programming)
- Use FFmpeg processing high quality GIF (Programming)
- SQL Beginner Guide (Database)
- Postgres-X2 deployment steps (Database)
- Using C / C ++ extensions Python (Programming)
- Linux monitoring tools introduced series --smem (Server)
- Postfix mail service system principle and configuration (Linux)
- GCC library link order problems (Programming)
- CentOS 6.4 RPM install MySQL-5.6.22-1 (Database)
- Hadoop configuration ssh automation of automation (Server)
- Using the Linux VNC service (Server)
- ARP Linux-related operations (Linux)
- Objective-C basic program structure (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.