Skip to content
Server
2016.02.22 10:42

아파치 ab 로 성능테스트 하기

조회 수 10921 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

아파치 ab 로 성능테스트 하기

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


C:\AutoSet10\server\bin>ab -c 10 -n 100 http://127.0.0.1/

This is ApacheBench, Version 2.3 <$Revision: 1706008 $>

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

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


Benchmarking 127.0.0.1 (be patient)...

Test aborted after 10 failures


apr_socket_connect(): 대상 컴퓨터에서 연결을 거부했으므로 연결하지 못했습니다.

 (730061)


C:\AutoSet10\server\bin>ab -c 10 -n 1000 http://127.0.0.1/

This is ApacheBench, Version 2.3 <$Revision: 1706008 $>

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

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


Benchmarking 127.0.0.1 (be patient)

Completed 100 requests

Completed 200 requests

Completed 300 requests

Completed 400 requests

Completed 500 requests

Completed 600 requests

Completed 700 requests

Completed 800 requests

Completed 900 requests

Completed 1000 requests

Finished 1000 requests



Server Software:        Apache/2.4.17

Server Hostname:        127.0.0.1

Server Port:            80


Document Path:          /

Document Length:        0 bytes


Concurrency Level:      10

Time taken for tests:   2.950 seconds

Complete requests:      1000

Failed requests:        0

Non-2xx responses:      1000

Total transferred:      387000 bytes

HTML transferred:       0 bytes

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

Time per request:       29.504 [ms] (mean)

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

Transfer rate:          128.09 [Kbytes/sec] received


Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:        0    0   1.7      0      16

Processing:    16   29   9.2     31      94

Waiting:       16   29   9.3     31      94

Total:         16   29   9.1     31      94


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

  50%     31

  66%     31

  75%     31

  80%     31

  90%     31

  95%     47

  98%     47

  99%     62

 100%     94 (longest request)


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


C:\AutoSet10\server\bin>ab -c 100 -n 1000 http://127.0.0.1/

This is ApacheBench, Version 2.3 <$Revision: 1706008 $>

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

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


Benchmarking 127.0.0.1 (be patient)

Completed 100 requests

Completed 200 requests

Completed 300 requests

Completed 400 requests

Completed 500 requests

Completed 600 requests

Completed 700 requests

Completed 800 requests

Completed 900 requests

Completed 1000 requests

Finished 1000 requests



Server Software:        Apache/2.4.17

Server Hostname:        127.0.0.1

Server Port:            80


Document Path:          /

Document Length:        0 bytes


Concurrency Level:      100

Time taken for tests:   3.064 seconds

Complete requests:      1000

Failed requests:        0

Non-2xx responses:      1000

Total transferred:      387000 bytes

HTML transferred:       0 bytes

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

Time per request:       306.363 [ms] (mean)

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

Transfer rate:          123.36 [Kbytes/sec] received


Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:        0    0   1.1      0      16

Processing:    31  293  82.2    296     796

Waiting:       31  293  82.1    287     796

Total:         31  293  82.1    296     796


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

  50%    296

  66%    312

  75%    328

  80%    343

  90%    380

  95%    421

  98%    484

  99%    608

 100%    796 (longest request)


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


C:\AutoSet10\server\bin>ab -c 100 -n 3000 http://127.0.0.1/

This is ApacheBench, Version 2.3 <$Revision: 1706008 $>

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

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


Benchmarking 127.0.0.1 (be patient)

Completed 300 requests

Completed 600 requests

Completed 900 requests

Completed 1200 requests

Completed 1500 requests

Completed 1800 requests

Completed 2100 requests

Completed 2400 requests

Completed 2700 requests

Completed 3000 requests

Finished 3000 requests



Server Software:        Apache/2.4.17

Server Hostname:        127.0.0.1

Server Port:            80


Document Path:          /

Document Length:        0 bytes


Concurrency Level:      100

Time taken for tests:   11.376 seconds

Complete requests:      3000

Failed requests:        0

Non-2xx responses:      3000

Total transferred:      1161000 bytes

HTML transferred:       0 bytes

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

Time per request:       379.197 [ms] (mean)

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

Transfer rate:          99.67 [Kbytes/sec] received


Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:        0    0   1.2      0      16

Processing:    47  308 140.1    296    4635

Waiting:       47  308 140.1    296    4635

Total:         47  308 140.1    296    4635


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

  50%    296

  66%    312

  75%    328

  80%    343

  90%    359

  95%    390

  98%    421

  99%    437

 100%   4635 (longest request)


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


C:\AutoSet10\server\bin>ab -c 10000 -n 100000 http://127.0.0.1/

This is ApacheBench, Version 2.3 <$Revision: 1706008 $>

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

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


Benchmarking 127.0.0.1 (be patient)


Test aborted after 10 failures


apr_socket_connect(): 대상 컴퓨터에서 연결을 거부했으므로 연결하지 못했습니다.

 (730061)


C:\AutoSet10\server\bin>




동시 접속자수(세션수) 10개로 최대 100개의 요청을 지정한 URL에 보내 응답을 받는 테스트

 

[root@zabbix ~]# ab -c 10 -n 100 http://localhost/zabbix/overview.php
This is ApacheBench, 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/

Benchmarking localhost (be patient).....done


Server Software:        Apache/2.2.17
Server Hostname:        localhost
Server Port:            80

Document Path:          /zabbix/overview.php
Document Length:        12717 bytes

Concurrency Level:      10
Time taken for tests:   28.047 seconds
Complete requests:      100
Failed requests:        17
   (Connect: 0, Receive: 0, Length: 17, Exceptions: 0)
Write errors:           0
Total transferred:      1312283 bytes
HTML transferred:       1271683 bytes
Requests per second:    3.57 [#/sec] (mean)
Time per request:       2804.683 [ms] (mean)
Time per request:       280.468 [ms] (mean, across all concurrent requests)
Transfer rate:          45.69 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    2   7.1      0      38
Processing:  2279 2776 333.4   2673    3540
Waiting:     2278 2772 333.0   2667    3539
Total:       2279 2778 332.7   2691    3540

 

 

# 결과 항목 의미

- Server Software      : 아파치 버전
- Server Hostname      : 사이트 이름(도메인명)
- Server Port          : 사용 포트번호
- Document Path        : 초기 문서가 존재하는 웹문서 root 위치 
- Time take for tests  : 응답 시간(매우 중요한 결과 값임)
- Document Length      : 초기문서(대부분 index.html, index.htm)의 용량크기
- Complete requests    : 요구에 응답 완료한 세션수
- Failed requests      : 요구에 응답 실패한 세션수
- Broken pipe errors   : 실패한 에러수 
- Total transferred    : 총 전송 바이트수
- HTTP transferred     : 총 전송한 HTML 바이트수
- Requests per second  : 초당 응답 요구수
- Time per request     : 요구에 응답한 시간(단위 micro second, 중요한 결과값)
- Time per request     : 요구에 응답한 시간
- Transfer rate        : 초당 전송 가능한 용량



로그인 후 댓글쓰기가 가능합니다.

?

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소