[Original] Introduction to the use of AB stress testing tools in Apache

Source: Internet
Author: User
Tags website server microsoft iis

[Original] Introduction to the use of AB stress testing tools in Apache

 

 

Apache Official Website: http://httpd.apache.org/download.cgi

Download installed version: Windows Version httpd-2.2.19-win32-x86-no_ssl.msi

1Installation steps:

1. Use the default installation method. Next, click Next.

2. After the test is completed, enter "http: // localhost/" in the browser or "http: // 127.0.0.1/" in the browser. If you can browse, see:

 

2 ABTool introduction,

If you use the default installation method, the default AB in windows should be installed in:

C: \ Program Files \ Apache Software Foundation \ apache2.2 \ bin, as shown in:

 

 

Next, let's start our tour of using AB!

Switch to the doscommand and enter the following content to query the help information of AB.

C: \ Program Files \ Apache Software Foundation \ apache2.2 \ bin> AB-hlep

Usage: AB [Options] [http: //] hostname [: Port]/path

Options are:

-N requests number of requests to perform

-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 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)

From the Help content above, we can understand that we can use AB to perform stress tests on the website by using the following methods:

 

C: \ Program Files \ Apache Software Foundation \ apache2.2 \ bin> AB-N 10-C 10 HTTP

Www.cnblogs.com/mayingbao

This is apachetings, Version 2.3 <$ revision: 655654 $>

Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/

Licensed to the Apache Software Foundation, http://www.apache.org/

// The above information indicates Apache copyright information

 

Benchmarking www.cnblogs.com (Be patient)... Done

 

 

Server Software: Microsoft-Microsoft IIS/7.5

// What is the requested website server software?

Server Hostname: www.cnblogs.com

// The requested website Domain Name

Server port: 80

// The requested website port number

Document path:/mayingbao

// Requested website path

Document length: 48303 bytes

// Request the page size of the website

 

Concurrency level: 10

// Concurrency

Time taken for tests: 2.890 seconds

// Time consumed by requesting the website (total time)

Complete requests: 10

// The total number of requested websites

Failed requests: 0

// Number of failed requests to the website

 

Write errors: 0

 

Total transferred: 486420 bytes

// Total transfer size

 

HTML transferred: 483030 bytes

// Indicates the total transfer size of the requested website

Requests per secondd: 3.46 [#/sec] (mean)

// Number of requests per second (average)

 

Time per request: 2890.310 [MS] (mean)

// Time consumed by all concurrent requests

 

Time per request: 289.031 [MS] (mean, internal SS all concurrent requests)

// The time consumed by each concurrency

 

 

Transfer Rate: 164.35 [Kbytes/sec] canceled ed

// Network transmission rate

 

Connection times (MS)

// Connection time

Min mean [+/-SD] median Max

Connect: 0 4 7.2 0 15

// Network connection status

Processing: 105 728 773.3 524 2830

// Network processing status

Waiting: 75 413 841.9 150 2800

// Network waiting status

Total: 120 732 770.8 524

/// The time spent on the connection status of each website

 

Percentage of the requests served within a certain time (MS)

50% 524

66% 644

75% 659

80% 943

90% 2830

95% 2830

98% 2830

99% 2830

100% 2830 (longest request)

// The response time of the requested website is calculated by percentage.

 

 

 

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.