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
번호 분류 제목 날짜 조회 수
837 AutoHotKey autohotkey) postmessage mouse control 13 2012.02.22 28633
836 컴퓨터잡담 DIV 라운드박스 쉽게 만들자. 1 1 file 2009.07.24 28592
835 컴퓨터잡담 트랜지스터의 종류와 특정 2013.10.12 28533
834 WindowsTip 네트워크 무선연결이 안될 때의 점검 방법 file 2013.03.12 28276
833 컴퓨터잡담 php 에서 mysql 제어하기 2009.11.28 28200
832 컴퓨터잡담 MySQL FEDERATED / InnoDB is disabled, myint64.dll 오류 어찌하오리 4 2010.04.19 27709
831 AutoHotKey [COM] 자바스크립트 / DOM / HTML 웹페이지 컨트롤 3 2011.02.12 27305
830 프로세스 Searchindexer.exe 제거하기 1 2011.03.18 27262
829 컴퓨터잡담 mysql 접속에러시 재부팅 하는 배치파일 2009.11.24 26693
828 Excel [excel] GET.CELL사용법 8 2012.07.16 26601
827 컴퓨터잡담 부팅시마다 체크디스크 실행되는 경우 설정방법 2010.08.21 26564
826 AutoHotKey [AUTOHOTKEY] FTP 제어 file 2011.02.04 25248
825 Excel 엑셀) 피벗테이블 원본데이터 영역범위 수정방법 1 2 file 2012.03.06 25109
824 컴퓨터잡담 무선공유기(AP) 채널간섭 해결하기 file 2013.08.17 25049
823 컴퓨터잡담 Excel VBA (1): 셀 선택 및 변수 및 비활성시트 컨트롤하기 3 2011.10.24 25006
822 컴퓨터잡담 자바스크립트 변수를 php로 옮기기 2010.02.03 24987
821 WindowsTip Windows-XP 의 [Prefetch] 폴더에 대하여[C:\WINDOWS\Prefetch] 2013.12.04 24630
820 Excel 현재 Excel 파일 이름을 셀에 삽입 2 2012.09.17 24589
819 컴퓨터잡담 인터넷 익스플러러 속도 향샹을 위한 팁 1 file 2012.02.25 24571
818 컴퓨터잡담 티맥스OS 무료배포도 판매 수익의 세배이상 가능하다 2 2009.07.26 24570
Board Pagination Prev 1 ... 3 4 5 6 7 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소