There are many website stress testing tools, linuxVPS learners have previously written two powerful website stress testing tools: test Web engine performance using apacheloud and http_load. however, they have many functions and complicated operations. The webbench operation is very simple. You can simulate up to 30 thousand concurrent connections to test the website load, and the effect is more intuitive and easy to use. 1. Obtain webshells
There are many website stress testing tools, linuxVPS learners have previously written two powerful website stress testing tools: test Web engine performance using Apache fuse and test Web engine performance using http_load. however, they have many functions and complicated operations. The webbench operation is very simple. You can simulate up to 30 thousand concurrent connections to test the website load, and the effect is more intuitive and easy to use.
1. Obtain webshells
1. Download
wget http://www.centoscn.com/tool/webbench-1.5.tar.gz
2. decompress and compile
Yum install-y gcc ctags # first install the components required for compilation tar zxvf webbench-1.5.tar.gz # unzip the Webbenchcd webbench-1.5 # enter the webbench directory make & make install # compile and install
Ii. Usage
webbench -c 100 -t 30 http://www.kwx.gd/
Run the preceding commands in SSH format.
-C: Number of threads (up to 30000 threads)
-T: duration (seconds)
Iii. view results
[Root@kwx.gd webbench-1.5] # webbench-c 100-t 30 http://www.kwx.gd/#to www.kwx.gdinitiator 100thread request, with a duration of 30 seconds. Webbench-Simple Web Benchmark 1.5 Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software. benchmarking: GET http://www.kwx.gd/100 clients, running 30 sec. #100 connections, running for 30 seconds Speed = 604 pages/min, 194290 bytes/sec. # speed, 604 pages/minute, 194290 Bytes/second Requests: 276 susceed, 26 failed. # number of responses, 276 normal responses, 26 failed responses