CentOS6.564-bit website stress testing tool webbench
In Apache, there are built-in AB commands to test the service pressure. nginx does not have its own commands and must be tested using a third-party software. Today we will briefly introduce the pressure test on nginx by webbench, stress testing is required for system administrators and O & M personnel. It clearly shows how much pressure the server can accept.
1. Test System: Centos6.5
2. Compile and install:
Wget http://home.tiscali.cz /~ Cz210552/distfiles/webbench-1.5.tar.gz
Tar xvf webbench-1.5.tar.gz-C/usr/local/
Cd/usr/local/webbench-1.5/
Make & make install
Note: if an error occurs, you can manually create a directory using the following information:
install: cannot create regular file '/usr/local/man/man1': No such file or directorymake: *** [install] Error 1 |
Then create the man folder manually and make it.
3. Usage:
Webbench-c 500-t 30 http://www.xxx.com
Parameter description:-c indicates the number of concurrencies, and-t indicates the time (seconds)
4. Test Result example:
[Root @ iZ94uoy9trrZ webbench-1.5] # ^./webbench-c 600-t 10 http: // xxxx/
Webbench-Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http: // xxxx/
600 clients, running 10 sec.
Speed = 43104 pages/min, 1291844 bytes/sec.
Requests: 3571 susceed, 3613 failed.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.