Install the Tsung-stress testing tool in CentOS

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.