Example of a webbench test website stress test in centos

Source: Internet
Author: User
Tags mkdir centos

Example 1: website stress testing tool webbench

Wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz
Tar zxvf webbench-1.5.tar.gz
Cd webbench-1.5
Make & make install

Usage:

Webbench-c 500-t 300

Parameter description:-c indicates the number of concurrencies, and-t indicates the time (seconds)

Example 2,


1. Install the compilation tool

Yum install ctags wget make apr * autoconf automake gcc-c ++

2. Download weblinks

Wget http://home.tiscali.cz/cz210552/distfiles/webbench-1.5.tar.gz # Download

 

3. Install webbench

Tar zxvf webbench-1.5.tar.gz # extract

Cd webbench-1.5 # enter the extract Directory

Make # compile

Mkdir/usr/local/man # Create a directory. Otherwise, the installation fails.

Make install # install

IV. Stress testing

Webbench-c 500-t 30 http: // 127.0.0.1/

Parameter description:

-C 500: 500 concurrent connections are generated simultaneously.

-T 30: 30 seconds

Note: weblinks can simulate a maximum of 30000 concurrent connections.


Webbench installation error: ctags not installed

If ctags make compilation is not installed, the following error occurs:/bin/sh: ctags: command not found.

Yum install ctags

Gcc not installed
At this time, an error may be reported:
Cc: Command not found
In this case, gcc is required:
Yum install gcc
Other errors
If the following error occurs:
Cannot create regular file '/usr/local/man/man1 & prime;: No such file or directory
Create the/usr/local/man/man1 file to solve the problem:
Mkdir-m 644-p/usr/local/man/man1

Related Article

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.