Web Stress test Gadget: Webbench, Http_load, Siege, AB

Source: Internet
Author: User

Webbench Installation

: http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gz

or http://soft.vpser.net/test/webbench/webbench-1.5.tar.gz.

(1) Copy files to Linux under (2) switch root account: Su root, if not switch, the following operation may prompt "Insufficient permissions", so first switch (3) Decompression: #tar-xf webbench-1.5.tar.gz (4) #cd webbench-1.5 (5) Installation: #make && make install (6) in the command input: #webbench-help can see the instructions, installation success! Use because the document is simple to use, we generally only use C: Client number T: Duration of this 2 parameters, if not set T parameter, default is to execute 30 seconds after entering the Webbench folder, execute command: webbench-c http://www.baidu.com The command is to use 10 client concurrent Baidu website 30 seconds, but in the execution of the command error: Invalid URL syntax-hostname don ' t ends with '/'. The solution is to add a "/" after the URL to the result feedback after executing the command Note the conclusion in the last step is speed: processing 1482 requests per minute, processing data per second: 2495637 bytes =604.64k/s (2495637/8/1024) =0.29m/s (2495637/8/1024/1024) Requests: success in processing a request of 740, Failure 1 summary webbench concurrency is to take a process run, not a thread, it is a way to eat memory, if it takes a long time to perform a performance test, or is recommended to use the LoadRunner (some excerpt from http:// www.cnblogs.com/xxyBlogs/p/5639103.html) Http_load Installation

: http://soft.vpser.net/test/http_load/http_load-12mar2006.tar.gz

(1) Copy files to Linux under (2) switch root account: Su root, if not switch, the following actions may prompt "Insufficient permissions", so first switch

(3) Decompression: #tar zxvf http_load-12mar2006.tar.gz
(4) #cd http_load-12mar2006
(5) #make && make install

Use

Prepare the URL file ( Note: To be placed in the http_load-12mar2006 folder ): Urllist.txt, the file format is one url,url per line preferably more than 50-100 test results better.

The file format is as follows:
Http://hackerfans.com/xxx.html
Http://hackerfans.com/xx.html
For example:

Http_load-p 30-s Urllist.txt
Parameter understanding, let's look at running a command to see its return result
Command:%./http_load-rate 5-seconds The URLs description performed a test that lasted for 10 seconds, with a frequency of 5 per second.

Fetches, 2 max parallel, 289884 bytes, in 10.0148 seconds5916 mean bytes/connection4.89274

Fetches/sec, 28945.5 bytes/secmsecs/connect:28.8932 mean, 44.243 Max, 24.488 Minmsecs/first

-response:63.5362 mean, 81.624 Max, 57.803 minhttp response Codes:code 200--49

Results Analysis:
1. Fetches, 2 max parallel, 289884 bytes, in 10.0148 seconds
Description in the above test run 49 requests, the maximum number of concurrent processes is 2, the total transfer of data is 289884bytes, the run time is 10.0148 seconds
2. 5916 mean bytes/connection shows the average amount of data transmitted per connection 289884/49=5916
3. 4.89274 fetches/sec, 28945.5 bytes/sec
Indicates that the response request per second is 4.89274, and the data passed per second is 28945.5 bytes/sec
4. msecs/connect:28.8932 mean, 44.243 max, 24.488 min

Indicates that the average response time per connection is 28.8932 msecs, maximum response time 44.243 msecs, minimum response time 24.488 msecs
5. msecs/first-response:63.5362 mean, 81.624 max, 57.803 min
6, HTTP response Codes:code 200--49 describes the type of open response page, if the type of 403 is too many, it may

Be aware that the system is experiencing bottlenecks.
Special Instructions:
The main indicators in the test results are fetches/sec, Msecs/connect, which is the number of queries that the server can respond to per second.

Use this indicator to measure performance. Seems to be a bit higher than Apache's AB accuracy and more persuasive.
Qpt-responds to user times per second and response time per connection.
The result of the test is mainly to look at these two values. Of course only these two indicators do not complete the performance analysis, we also need to the server

CPU, men to analyze, to draw conclusions

Siege installation

: http://soft.vpser.net/test/siege/siege-2.67.tar.gz

(1) Copy files to Linux under (2) switch root account: Su root, if not switch, the following actions may prompt "Insufficient permissions", so first switch

(3) Unzip: # TAR-ZXF Siege-2.67.tar.gz

(4) # CD siege-2.67

(5) #./configure

(6) #make

(7) #make Install

(8) #siege-V View version information.

(9) Use #siege-h or #siege--help to view help information

Installation is complete!

Siege Command Common parameters

-C 200 Specifies the number of concurrent 200
-R 5 Number of specified tests 5
-F urls.txt file for URL development
-I Internet system, random send URL
-B Request No wait delay=0
-T 5 continuous test for 5 minutes
-R and-T are generally not used concurrently

Examples of commonly used siege commands

200 concurrent send requests to http://www.google.com 100 times
# siege-c 200-r http://www.google.com

List all URLs in Urls.txt
# siege-c 200-r 100-f urls.txt

Randomly select all URLs listed in the Urls.txt
# siege-c 200-r 100-f urls.txt-i

Delay=0, more accurate stress testing, rather than functional testing
#siege-C 200-r 100-f Urls.txt-i-B

Specify the HTTP request header document type
# siege-h "Content-type:application/json"-C 200-r 100-f Urls.txt-i-B

Siege output Result Description

Transactions: Total number of tests
Availability: Percentage of successful times
Elapsed time: How many seconds in total
Data transferred: Total data transfer
Response time: Wait for the response to take
Transaction Rate: Average number of requests processed per second
Throughput: Throughput Rate
Concurrency: Highest concurrency
Successful transactions: number of Successful requests
Failed transactions: Number of failed requests

Some summaries of siege use

1, when sending a POST request, the URL format is: Http://www.xxxx.com/POST p1=v1&p2=v2
2, if the URL contains spaces and Chinese, to first URL encoding, otherwise siege sent request URL is not accurate
3,siege-c can view the relevant configuration parameters, can modify itself, such as whether to display log, time-out

Ab

Temporarily unused, to be continued ...

Web Stress test Gadget: Webbench, Http_load, Siege, AB

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.