Skip to content
Server
2016.02.22 10:42

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

조회 수 12357 추천 수 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 파이썬 파이썬 매수할 피라미드 매수전략 2021.09.06 1853
836 파이썬 키움증권 OpenAPI 당황스러움 file 2021.09.06 1749
835 파이썬 파이썬 키움증권 OPEN API 매수/매도/정정/취소 주문방법 2021.09.05 4036
834 파이썬 파이썬 변수전달하기 2021.09.05 1446
833 컴퓨터잡담 파이썬 키움증권 open api 분할매매 수식구하기 2021.09.04 1343
832 컴퓨터잡담 파이썬(python) 자주 사용하는 명령 모으기 2021.09.03 884
831 컴퓨터잡담 [python] 윈도우 파이썬 모듈 설치 방법 (특정프로그램 설치 없이 기본프로그램 활용) 2021.09.02 1581
830 컴퓨터잡담 아나콘다에서 모듈을 설치할 때에는? 2021.09.02 941
829 컴퓨터잡담 파이썬 키움증권 open api 스크랩 2021.09.02 969
828 컴퓨터잡담 python 문자열에서 모든 공백을 제거 2021.08.31 897
827 컴퓨터잡담 Python Requests post() Method 2021.08.31 1343
826 컴퓨터잡담 파이썬 JSON으로 받아온 데이터의 Key 값 가져오기 2021.08.27 10838
825 컴퓨터잡담 파이썬으로 키움증권 open api 사용해보기 file 2021.08.24 1490
824 컴퓨터잡담 파이썬 다음 증권의 주가 가져오기 2021.08.22 1452
823 컴퓨터잡담 파이썬 네이버라인 메시지 보내기 2021.08.22 1479
822 컴퓨터잡담 파이썬 파일로 읽어올 때 \n이 \\n으로 변경되는 현상 대처방법 2021.08.15 1341
821 컴퓨터잡담 python pip 에러 line 193, line 197 해결방법 2021.08.12 4061
820 컴퓨터잡담 카카오 인증관련 오류 file 2021.08.08 7952
819 HTMLPHPMSQL CCS 메뉴 스타일 링크 2021.08.04 3891
818 컴퓨터잡담 파이썬 FTP 업로드/다운로드 하기 2021.07.31 3393
Board Pagination Prev 1 ... 3 4 5 6 7 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소