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