강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

아파치 밴치마킹툴 ab 로 특정 웹사이트의 응답속도 테스트결과에 헤드정보 포함하여 측정하기

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

아파치 밴치마킹툴 ab 특정 웹사이트의 응답속도 테스트결과에 헤드정보 포함하여 측정하기

 

ab유틸리티의 테스트 결과에 헤드정보를 포함하고자 한다면 다음 예와 같이 -v옵션을 사용합니다.

 

 일반적인 출력결과보다 좀 더 자세한 결과를 보려고 할 때 사용하는 옵션입니다.

 

 즉 테스트하는 사이트의 헤드정보를 함께 볼 수 있습니다.

 

  

 

[root@host3 bin]# ab -n 1 -v 10 http://192.168.0.113/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.116 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.0.113 (be patient)...INFO: POST header ==
---
GET / HTTP/1.0
User-Agent: ApacheBench/2.0.40-dev
Host: 192.168.0.113
Accept: */*


---
LOG: header received:
HTTP/1.1 401 Authorization Required
Date: Sat, 04 Oct 2003 04:18:25 GMT
Server: Apache/1.3.28 (Unix) PHP/4.3.3
WWW-Authenticate: Basic realm="
리눅스 명령어 파워활용"
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>401 Authorization Required</TITLE>
</HEAD><BODY>
<H1>Authorization Required</H1>
This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.<P>
<HR>
<ADDRESS>Apache/1.3.28 Server at host3.linux.kr Port 80</ADDRESS>
</BODY></HTML>

WARNING: Response code not 2xx (401)
..done


Server Software:        Apache/1.3.28
Server Hostname:        192.168.0.113
Server Port:            80

Document Path:          /
Document Length:        475 bytes

Concurrency Level:      1
Time taken for tests:   0.38650 seconds
Complete requests:      1
Failed requests:        0
Write errors:           0
Non-2xx responses:      1
Total transferred:      711 bytes
HTML transferred:       475 bytes
Requests per second:    25.87 [#/sec] (mean)
Time per request:       38.650 [ms] (mean)
Time per request:       38.650 [ms] (mean, across all concurrent requests)
Transfer rate:          0.00 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:    37   37   0.0     37      37
Waiting:       23   23   0.0     23      23
Total:         37   37   0.0     37      37
[root@host3 bin]#

 

, 위의 결과를 보시면 ab명령어로 192.168.0.113웹사이트의 응답속도를 측정하면서 HTML포맷의 헤드정보를 함께 출력하였습니다.

 

 보다 자세한 응답결과를 얻기위한 방법이 될 수 있습니다.

 

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,059 명
  • 현재 강좌수 :  35,939 개
  • 현재 접속자 :  241 명