Install and configure the website stress testing tool webbench

Source: Internet
Author: User

From: http://www.reistlin.com/blog/84

ReferenceArticle:Http://blog.s135.com/post/288/ (banquet)
Official Website:Http://home.tiscali.cz /~ Cz210552/webbench. html

1. Download and decompress
 
Reistlin :~ # Wget http://home.tiscali.cz /~ Cz210552/distfiles/webbench-1.5.tar.gz reistlin :~ # Tar zxvf webbench-1.5.tar.gz reistlin :~ # Cd webbench-1.5
2. Configure the compilation file: makefile custom installation path
 
Reistlin :~ # Vim makefile # custom installation path. default installation path:/usr/local/prefix? =/Home/reistlin/webshells
3. Install ctags
 
Reistlin :~ # Apt-Get install ctags

Or download the ctags-5.8.tar.gz compilation Installation

 
Reistlin :~ # Wget http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz

Note! If you do not install ctags make compilation, the following error occurs:/bin/sh: ctags: Command not found.

 
Ctags *. c/bin/sh: ctags: Command not found make: [tags] Error 127 (ignored)
4. Compile, compile, and install
 
Reistlin :~ # Make reistlin :~ # Make install
5. Make install if an error occurs: no such file or directory
Install-M 644 webbench.1/home/reistlin/webbench/man/Man1 install: cannot create regular file '/home/reistlin/webbench/man/man1 ': no such file or directory make: *** [install] Error 1

UseMkdir-PManually create a directory:

 
Reistlin :~ # Mkdir-P/home/reistlin/webbench/man/Man1

Finally, execute againMake installComplete the installation.

We recommend that you createSymbolic Links:

 
Reistlin:/home/reistlin/webshells # ln-S./bin webshells
6. website and web stress testing:
Reistlin :~ #. /Webbench-C 500-T 30 http://www.reistlin.com/webbench-simple web benchmark 1.5 copyright (c) Radim Kolar 1997-2004, GPL open source software. benchmarking: Get http://www.reistlin.com/500 clients, running 30 sec. speed = 122530 pages/min, 1065157 Bytes/sec. requests: 61259 susceed, 6 failed.

E Software. Benchmarking: Get http://www.reistlin.com/500 clients, running 30 sec. speed = 122530 pages/min, 1065157 Bytes/sec. Requests: 61259 susceed, 6 failed.

 

 

-T specifies the test time.-C 10000-T30 simulates 10000 concurrent jobs and tests for 30 s. Within these 30 s, webshells will continuously send requests, and wait for the response of the request. This process is recorded as a successful request. The main user wants to test the maximum concurrency. There are many factors to consider, mainly load, traffic, disk Io, four items in memory, it is best to run webshells on other machines during the test, increasing the-C parameter, no matter which of the above four items reaches the bottleneck first, the maximum load on the server is-C.

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.