Install the webbentch stress testing tool in ubuntu 14.04 LTS, 14.04 webbentch
1. Security AB command
[Plain]View plaincopy
- Sudo apt-get install apache2-utils
2. AB command parameter description
[Plain]View plaincopy
- Usage: AB [options] [http [s]: //] hostname [: port]/path
- Options are:
- // Total number of requests
- -N requests Number of requests to perform
- // Total number of concurrent requests (n) = count * Number of concurrent requests (c)
- -C concurrency Number of multiple requests to make
- -T timelimit Seconds to max. wait for responses
- -B windowsize Size of TCP send/receive buffer, in bytes
- -P postfile File containing data to POST. Remember also to set-T
- -U putfile File containing data to PUT. Remember also to set-T
- -T content-type Content-type header for POSTing, eg.
- 'Application/x-www-form-urlencoded'
- Default is 'text/plain'
- -V verbosity How much troubleshooting info to print
- -W Print out results in HTML tables
- -I Use HEAD instead of GET
- -X attributes String to insert as table attributes
- -Y attributes String to insert as tr attributes
- -Z attributes String to insert as td or th attributes
- -C attribute Add cookie, eg. 'apache = 1234. (repeatable)
- -H attribute Add Arbitrary header line, eg. 'Accept-Encoding: gzip'
- Inserted after all normal header lines. (repeatable)
- -A attribute Add Basic WWW Authentication, the attributes
- Are a colon separated username and password.
- -P attribute Add Basic Proxy Authentication, the attributes
- Are a colon separated username and password.
- -X proxy: port Proxyserver and port number to use
- -V Print version number and exit
- -K Use HTTP KeepAlive feature
- -D Do not show percentiles served table.
- -S Do not show confidence estimators and warnings.
- -G filename Output collected data to gnuplot format file.
- -E filename Output CSV file with percentages served
- -R Don't exit on socket receive errors.
- -H Display usage information (this message)
- -Z ciphersuite Specify SSL/TLS cipher suite (See openssl ciphers)
- -F protocol Specify SSL/TLS protocol (SSL2, SSL3, TLS1, or ALL)
3. Run the AB-n 100-c 10 http://www.meetu.hk/100 requests to the http://www.meetu.hk/, 10 concurrent request stress test results.
[Plain]View plaincopy
- Server Software: lighttpd/1.4.20
- Server Hostname: www.meetu.hk
- Server Port: 80
- Document Path :/
- Document Length: 2095 bytes
- Concurrency Level: 10
- // Test duration
- Time taken for tests: 3.303 seconds
- // Number of completed requests
- Complete requests: 100
- Failed requests: 0
- Write errors: 0
- Total transferred: 235200 bytes
- HTML transferred: 209500 bytes
- // Process 30 requests per second on average
- Requests per secondd: 30.27 [#/sec] (mean)
- // The average processing time of each request is 330 milliseconds. Note: Here, 10 concurrent requests are regarded as a whole.
- Time per request: 330.335 [MS] (mean)
- // The average processing time of each concurrent request is 33 Ms
- Time per request: 33.034 [MS] (mean, internal SS all concurrent requests)
- Transfer rate: 69.53 [Kbytes/sec] canceled ed
- Connection Times (MS)
- Min mean [+/-sd] median max
- Connect: 51 170 35.9 178 230
- Processing: 60 153 64.5 121 263
- Waiting: 55 148 64.4 115
- Total: 235 322 59.9 299
- Percentage of the requests served within a certain time (MS)
- // 100 of these 50% requests are completed within 299 milliseconds
- 50% 299
- // 100 of these 66% requests are completed within 312 milliseconds
- 66% 312
- 75% 383
- 80% 412
- 90% 431
- 95% 432
- 98% 436
- 99% 437
- 100% 437 (longest request)