Apache Stress test-ab

Source: Internet
Author: User
Tags benchmark server port

Test environment:

Operating system: CentOS release 6.6 (Final)

Apache Performance Test Tool Ab:this is Apachebench, Version 2.3

1.Apache 's own stress test software AB test.

2.Apache Benchmark abbreviation AB,AB is the Apache benchmark test tool.

3.yum-y Install Httpd-tools # can be installed separately AB

4.AB pressure test, you may want to create a lot of test files and delete, too many files system will be error, modified as follows: Ulimit–n 3600

ab test common commands

Format:./ab[options][http://]hostname[:p Ort]/path

- N number of requests executed in the test session, by default, only one request is executed

- C the number of requests produced at one time. The default is one at a time

- T maximum number of seconds to test

- v sets the level of detail that displays information, which may be negative to positive, and the larger the value, the more detailed the information is displayed.

ab Test Example one

[Email protected]/]# ab-c 100-n http://117.40.239.9/bbs/forum.php

Thisis Apachebench, Version 2.3 < $Revision: 655654 $>

Copyright1996 Adam Twiss, Zeus technology LTD, http://www.zeustech.net/

Licensedto the Apache software Foundation, http://www.apache.org/

Benchmarking117.40.239.9 (Be patient)

Completed100 Requests

Completed200 Requests

Completed300 Requests

Completed400 Requests

Completed500 Requests

Completed600 Requests

Completed700 Requests

Completed800 Requests

Completed900 Requests

Completed1000 Requests

Finished1000 Requests

serversoftware:apache/2.2.15 #web Server Software

serverhostname:117.40.239.9 # Server IP Address

Server port:80 # Server Port

documentpath:/bbs/forum.php # Access Path

documentlength:50602 Bytes # size of the Access file

concurrencylevel:100 # number of concurrent requests, that is, the number of people visiting at the same time

Time taken for tests:43.837 seconds # Response Time

completerequests:1000 # total number of response requests

Failedrequests:1 # number of failed requests

(connect:0, receive:0, length:1,exceptions:0)

writeerrors:0 # number of failed writes

totaltransferred:51367791 Bytes # total amount of data transferred

htmltransferred:50935667 bytes #html Page Size

requestsper second:22.81 [#/sec] (mean) # How many people are supported per second

Timeper request:4383.664 [MS] (mean) # The total time it takes to meet a request

Timeper request:43.837 [MS] (Mean,across all concurrent requests)

Transfer Rate:1144.34[kbytes/sec] received # average number of bytes received per second

Connectiontimes (MS)

Min MEAN[+/-SD] Median max

Connect:3 473 286.7 625 2182

processing:99 3768 2052.3 3174 19915

waiting:0 1699 1663.2 780 7835

total:102 4241 2048.6 3486 20545

Percentageof the requests served within a certain time (MS)

50% 3486

66% 3997

75% 4633

80% 5281

90% 7159

95% 8564

98% 10118

99% 11416

100% 20545 (Longest request)

ab Test Example two

[Email protected]/]# AB www.hao123.com/

Thisis Apachebench, Version 2.3 < $Revision: 655654 $>

Copyright1996 Adam Twiss, Zeus technology LTD, http://www.zeustech.net/

Licensedto the Apache software Foundation, http://www.apache.org/

Benchmarkingwww.hao123.com (Be patient) ... done

serversoftware:bws/1.0

ServerHostname:www.hao123.com

Server Port :

Documentpath:/

documentlength:567641 bytes

Concurrencylevel:1

Timetaken for tests:0.948 seconds

Completerequests:1

failedrequests:0

writeerrors:0

totaltransferred:568191 bytes

htmltransferred:567641 bytes

Requestsper second:1.05 [#/sec] (mean)

Timeper request:948.005 [MS] (mean)

Timeper request:948.005 [MS] (Mean,across all concurrent requests)

transferrate:585.31 [kbytes/sec]received

Connectiontimes (MS)

Min MEAN[+/-SD] Median max

CONNECT:64 64 0.0 64 64

processing:884 884 0.0 884 884

WAITING:95 95 0.0 95 95

total:948 948 0.0 948 948


This article is from the "Linux~dba~mba~eie" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1713508

Apache Stress test-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.