Windows environment Apache server stress test

  

Through the server stress test can get an overview of a server's load capacity, the following is the Apache server test method under Windows.

The Apache server comes with a test program Ab.exe that can be easily used. .

The command is ab -c requests -n number of threads URL (recommended to enter the landing page). .

The number of threads should not be too large. According to your computer's ability to withstand. . .

There are restrictions on the number of requests to prevent someone from messing with Ddos others. .

Example: ab -n 10 -c 10 [url]http://192.168.1.3/index.html[/url]

The results are as follows. .

D:Apachebin>ab -n 10 -c 10 [url]http://192.168.1.3/index.html[/url]

(The above is the command entered)
>

Benchmarking 192.168.1.3 (be patient).....done

Server Software: Apache/2.0.63

(Target Server Apache Version Number)

Server Hostname: 192.168.1.3

(Target Server Host Header Name)

Server Port: 80

(Target Server Apache Port)

Document Path : /index.html

(Destination page relative address)

Document Length: 292 bytes

(Destination page size)

Concurrency Level: 10 < Br>

(Concurrent threads)

Time taken for tests: 0.140625 seconds

(Usage time)

Complete requests: 10

( Number of successful requests)

Failed requests: 0

(number of failed requests)

Write errors: 0

(number of errors occurred)

Total Transferred: 5750 bytes

(all used traffic)

HTML transferred: 2920 bytes

(Html ​​file usage)

Requests per second: 71.11 [#/sec] (mean)

(indicator 1 average requests per second)

Time per request: 140.625 [ms] (mean)

(indicator 2 Average transaction response time)

Time per request: 14.063 [ms] (mean, across all concurrent requests)

(request time per second)

Transfer rate: 35.56 [ ,null,null,3],Kbytes/sec] received

(Transmission Rate)

Connection Times (ms)

min mean[+/-sd] median max

Connect: 0 0 0.0 0 0

Processing: 109 124 16.3 140 140

Waiting: 109 124 16.3 140 140

Total: 109 124 16.3 140 140

(Response for all requests)

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

50% 140

66% 140

75 % 140

80% 140

90% 140

95% 140

98% 140

99% 140

100% 140 (longest request)

Each request has a response time. .

For example, 50% of users have a response time of less than 140 milliseconds. .

The maximum response time is less than 140 milliseconds (at 100%). .

Copyright © Windows knowledge All Rights Reserved