A good stress testing tool, Tsung

Source: Internet
Author: User
Tags install perl
A good stress testing tool, TsungI have been busy with a variety of things some time ago, and I haven't completed the engine for nearly three weeks. Today I am a little busy. The server engine I wrote just now has reached the final testing stage, so I studied how to test the server pressure.
Currently, the mainstream tools used to test server pressure include webbench and AB, but they cannot meet my needs. webbench did not find the post JSON method. AB is mainly used to test Apache. After asking some friends in the group, they recommended the Tsung compiled by Erlang. Baidu gave a look at this stuff and found that Baidu encyclopedia described it as follows:

It looks pretty good. Download the research.
Tsung's official website is: http://tsung.erlang-projects.org/
The latest version is 1.6.0, updated in last September, is: http://tsung.erlang-projects.org/dist/tsung-1.6.0.tar.gz

Install Tsung:
1. wget http://tsung.erlang-projects.org/dist/tsung-1.6.0.tar.gz2. Tar-zxvf tsung-1.6.0.tar.gz
3. CD tsung-1.6.0/
4../configure
5. Make & make install

The installation is successful.
Note: Tsung is a testing software developed by Erlang. If you encounter any problems, check whether your Erlang works properly. For more information about Erlang installation, see http://www.cnblogs.com/lsm19870508/p/5365019.html中ererlang to configure the environment.

Install the Perl template to generate the Report Template:
1. sudo apt-Get install perl-modules2.wget http://cpan.org/modules/by-module/Template/Template-Toolkit-2.26.tar.gz
3. CD Template-Toolkit-2.26/4. Perl makefile. pl
5. Make
6. Make Test
7. sudo make install
Install gnuplot:
Apt-Get install gnuplot
The installation is successful.

Perform actual testing:
1. mkdir. tstrap
2. chmod 777. tstrap
3. ls/usr/share/doc/Tsung/examples/the result is:
Select the template we need from here. Here I select http_simple.xml
4. CP/usr/share/doc/Tsung/examples/http_simple.xml./. Tsung/Tsung. xml5.cd. Tsung/6. Tsung start7. enter the log directory to view the generated report information.
 
8. Enter the log directory for generating graphical reports, such as 20160517-1606/, and run/usr/lib/Tsung/bin/tsung_stats.pl to generate reports.
Open report.html. The result is as follows:
More references to official documentation: http://tsung.erlang-projects.org/user_manual/installation.html

A good stress testing tool, Tsung

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.