Skip to content
Server
2016.02.22 10:42

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

조회 수 12358 추천 수 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        : 초당 전송 가능한 용량



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

?

List of Articles
번호 분류 제목 날짜 조회 수
857 AutoHotKey autohotkey) postmessage mouse control 13 2012.02.22 28631
856 AutoHotKey autohotkey) Virus? 6 2011.12.31 34679
855 AutoHotKey autohotkey) WinSpector spy를 이용한 post,sendmessage Control ID 추출하기 3 file 2012.02.22 10901
854 AutoHotKey autohotkey) 네 코드를 보여, 내가 당신에게서 배우고 싶어요 1 2012.01.08 15114
853 AutoHotKey autohotkey) 런처시스템 3 2012.05.30 14286
852 AutoHotKey autohotkey) 맥어드레스 추출 2 2011.12.21 15082
851 AutoHotKey autohotkey) 스크린세이버 활성화 / 비활성화 시키기. 2012.03.17 8035
850 AutoHotKey autohotkey) 오토핫키에서 자주쓰는 함수모음 2013.10.30 33703
849 AutoHotKey autohotkey) 웹페이지의 프레임 내용보기 & 클릭하기 2011.11.29 15148
848 AutoHotKey autohotkey) 윈도우 ahk_id 추출하기 2 2012.03.06 30089
847 AutoHotKey autohotkey) 파일리스트 가져오기 3 2012.11.26 14987
846 AutoHotKey autohotkey) 편입 변수 4 2012.03.13 28888
845 AutoHotKey autohotkey) 핑테스트 프로그램 1 file 2011.12.31 18952
844 AutoHotKey autohotkey) 화면보호기 실행 전 클릭으로 화면보호 안걸리게 하기 2012.03.15 8869
843 AutoHotKey Autohotkey) 화면보호기(ScreenSaver) On/Off 방법 17 2012.03.16 40702
842 AutoHotKey autohotkey) 화면보호기, 바탕화면 control 창 열기 3 2012.03.17 8364
841 AutoHotKey autohotkey)매월 1일의 요일 구하기 1 2013.01.27 15267
840 AutoHotKey Autohotkey] 키보드 후킹 테스트 file 2018.07.07 9683
839 AutoHotKey autohotkey_L Object 2011.02.21 15391
838 AutoHotKey AutoHotkey_L: Arrays, Debugger, x64, COM, #If expression 3 2011.02.14 21594
Board Pagination Prev 1 2 3 4 5 6 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소