Official Website address: http://tsung.erlang-projects.org/tsungpressure test tool work principle introduction (1) Every Virtual User of Tsung is a lightweight erlang process. This is a big difference from loadrunner. (2) The Virtual User disappears after completing the session. (3) a large number of virtual users (erlan
Official Website address: http://tsung.erlang-projects.org/
How Tsung stress testing tool works
(1) Every Virtual User of Tsung is an erlang lightweight process. This is a big difference from loadrunner.
(2) The Virtual User disappears after completing the session.
(3) a large number of virtual users (erlang lightweight process) are built on erlangVM.
CentOS installation steps:
Tsung installation package, erlang installation package, Perl (modules required for report generation), graphics library gnuplot, etc.
1. erlang
2. perl
3. gnuplot
Yum install gd libpng zlib
Erlang installation:
Http://www.erlang.org/download/otp_src_R15B02.tar.gz
Tar zxvf otp_src_R15B02.tar.gz
Cd otp_src_R15B02
./Configure
Make
Make install
Gnuplot installation:
Wget http://nchc.dl.sourceforge.net/project/gnuplot/gnuplot/4.4.0/gnuplot-4.4.0.tar.gz
Tar-zxvf gnuplot-4.4.0.tar.gz
Cd gnuplot-4.4.0
./Configure
Make
Make install
Template-toolki installation:
Wget http://www.cpan.org/modules/by-module/Template/Template-Toolkit-2.24.tar.gz
Tar zxf Template-Toolkit-2.24.tar.gz
Cd Template-Toolkit-2.24
Perl Makefile. PL
Make
Make install
Configure Tsung:
~ /. Tsung/tsung. xml is the default configuration file for tsung. However, after installation, we will find that this directory and file do not exist, and we will create this directory manually.
Mkdir/home/. tstrap
There are some sample files in/usr/share/doc/tsung/examples/. you can refer to the jabber_register.xml file to compile your own tsung. xml.
Cp/usr/share/doc/tsung/examples/jabber_register.xml ~ /. Tsung/tsung. xml
Start Tsung
Tshortstart/stop/debug/status
Tsung-f/home/. tsung/tsung. xml start
Enter the log Directory
Cd/root/. tsung/log/20120913-1436
Run scripts to generate report files
/Usr/local/lib/tsung/bin/tsung_stats.pl
View the generated report:
Drag down the entire 20120913-1436 directory or install apache to view