리눅스, 자료실, 성경검색, 추억의게임, 고전게임, 오락실게임, rootman, http://www.rootman.co.kr
* 3.235.29.190 *
| Home | Profile | Linux | 자료실 | zabbix | Mysql 5.6 | 갤러리 | 성경검색 | 해피니스 | 자유게시판 | 게시물검색 | L | O | R |    

 
[기초강좌] [BMT] ab 를 통한 아파치 성능체크
 작성자 : rootman
Date : 2002-10-18 10:31  |  Hit : 10,905  


최종 업데이트 : 2009/01/08


안녕하세요.
아파치 성능체크를 ab 를 통해 하려 합니다. ^^

apache에서 지원되는 유틸리티 옵션을 보도록 하지요. ab 입니다.

-----------------------------------------------------------------------
*. 옵션...
-----------------------------------------------------------------------
[[email protected] 22:52:31 ~]$ ab
ab: wrong number of arguments
Usage: ab [options] [http://]hostname[:port]/path
Options are:
-n requests Number of requests to perform
-c concurrency Number of multiple requests to make
-t timelimit Seconds to max. wait for responses
-p postfile File containg data to POST
-T content-type Content-type header for POSTing
-v verbosity How much troubleshooting info to print
-w Print out results in HTML tables
-i Use HEAD instead of GET
-x attributes String to insert as table attributes
-y attributes String to insert as tr attributes
-z attributes String to insert as td or th attributes
-C attribute Add cookie, eg. 'Apache=1234' (repeatable)
-H attribute Add Arbitrary header line, eg. 'Accept-Encoding: zop'
Inserted after all normal header lines. (repeatable)
-A attribute Add Basic WWW Authentication, the attributes
are a colon separated username and password.
-P attribute Add Basic Proxy Authentication, the attributes
are a colon separated username and password.
-X proxy:port Proxyserver and port number to use
-V Print version number and exit
-k Use HTTP KeepAlive feature
-d Do not show percentiles served table.
-S Do not show confidence estimators and warnings.
-g filename Output collected data to gnuplot format file.
-e filename Output CSV file with percentages served
-h Display usage information (this message)


-----------------------------------------------------------------------
(1) 기본 옵션 (default)
-----------------------------------------------------------------------
[[email protected] 22:32:30 ~]$ ab http://www.rootman.co.kr/
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/
Korean translation by AnNyung LInux, http://annyung.oops.org/

Benchmarking www.rootman.co.kr (be patient).....done
Server Software: Apache (아파치 버전 표시)
Server Hostname: www.rootman.co.kr (BMT 도메인명)
Server Port: 80 (서비스 포트)

Document Path: / (초기 호출 페이지)
Document Length: 202 bytes (초기 호출 페이지 사이즈)

Concurrency Level: 1
Time taken for tests: 0.000 seconds
Complete requests: 1
Failed requests: 0
Broken pipe errors: 0
Total transferred: 411 bytes
HTML transferred: 202 bytes


-----------------------------------------------------------------------
(2) -n (request 요청 수 )
-----------------------------------------------------------------------
[[email protected] 22:37:46 ~]$ ab -n 10 http://www.rootman.co.kr/
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/
Korean translation by AnNyung LInux, http://annyung.oops.org/

Benchmarking www.rootman.co.kr (be patient).....done
Server Software: Apache
Server Hostname: www.rootman.co.kr
Server Port: 80

Document Path: /
Document Length: 202 bytes

Concurrency Level: 1
Time taken for tests: 0.007 seconds
Complete requests: 10
Failed requests: 0
Broken pipe errors: 0
Total transferred: 4110 bytes
HTML transferred: 2020 bytes
Requests per second: 1428.57 [#/sec] (mean)
Time per request: 0.70 [ms] (mean)
Time per request: 0.70 [ms] (mean, across all concurrent requests)
Transfer rate: 587.14 [Kbytes/sec] received


-----------------------------------------------------------------------
(2) -c (다중 세션 요청 수 )
-----------------------------------------------------------------------
[[email protected] 22:37:49 ~]$ ab -c 10 http://www.rootman.co.kr/
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/
Korean translation by AnNyung LInux, http://annyung.oops.org/

Benchmarking www.rootman.co.kr (be patient).....done
Server Software: Apache
Server Hostname: www.rootman.co.kr
Server Port: 80

Document Path: /
Document Length: 202 bytes

Concurrency Level: 10
Time taken for tests: 0.005 seconds
Complete requests: 1
Failed requests: 0
Broken pipe errors: 0
Total transferred: 2466 bytes
HTML transferred: 1212 bytes
Requests per second: 200.00 [#/sec] (mean)
Time per request: 50.00 [ms] (mean)
Time per request: 5.00 [ms] (mean, across all concurrent requests)
Transfer rate: 493.20 [Kbytes/sec] received

-----------------------------------------------------------------------
(3) -k (keepalive를 활성화하여 테스트)
-----------------------------------------------------------------------
[[email protected] 22:39:37 ~]$ ab -k http://www.rootman.co.kr/
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/
Korean translation by AnNyung LInux, http://annyung.oops.org/

Benchmarking www.rootman.co.kr (be patient).....done
Server Software: Apache
Server Hostname: www.rootman.co.kr
Server Port: 80

Document Path: /
Document Length: 202 bytes

Concurrency Level: 1
Time taken for tests: 0.000 seconds
Complete requests: 1
Failed requests: 0
Broken pipe errors: 0
Keep-Alive requests: 0
Total transferred: 411 bytes
HTML transferred: 202 bytes


-----------------------------------------------------------------------
(4) -w (테스트 결과를 html으로 저장하기)
-----------------------------------------------------------------------
[[email protected] 22:50:09 ~]$ ab -k -w -c 10 -n 1 http://www.rootman.co.kr/ > mysite.bmt.html



 
 

Total. 645
번호 분류 제목 작성자 등록일 조회수
600 기초강좌 터미널상에서 쉘 명령 라인에서의 단축키 사용 (1) rootman 05-18 11894
599 mysql [mysql] mysql load data/ out file 에 대한 기초자료(import/ex… 관리자 01-25 11875
598 Doc/Faq rrdtool을 한 번 이용해 볼까요? (1) rootman 08-25 11626
597 Shell [최종수정 : 2005/09/12] 서버 상태 값 주기적으로 메일로 발송… 루트맨 01-27 11499
596 Doc/Faq [팁] 서버성능 관련하여 %iowait 제대로 알기 rootman 04-29 11298
595 sqlite [sqlite] 반올림, 버림, 올림 함수 rootman 11-22 11169
594 mysql [mysql] mysqltunner를 통한 mysql optimize rootman 03-18 11124
593 기초강좌 [BMT] ab 를 통한 아파치 성능체크 (46) rootman 10-18 10906
592 sqlite [sqlite3] 날짜와 시간 함수 알아보기 rootman 12-14 10853
591 기초강좌 주요 핵심 튜닝 사항들 rootman 10-19 10743
590 Shell [nagios] HP MSA60 P800 스카시 컨트롤러 펌웨어 체크 plugin rootman 04-16 10714
589 Doc/Faq procmail을 통한 메일 필터링 (2) rootman 09-21 10685
588 Doc/Faq DDOS로 고생하시는분들에게.. rootman 09-20 10636
587 기초강좌 fuser를 이용하여 프로세스 컨트롤하기 (20) rootman 09-26 10594
586 기초강좌 partprobe를 통한 사용중인 파티션 재인식 시키기 rootman 08-31 10571
 1  2  3  4  5  6  7  8  9  10    
AND OR