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

기초강좌 [BMT] ab 를 통한 아파치 성능체크

페이지 정보

profile_image
작성자 rootman
댓글 46건 조회 11,932회 작성일 02-10-18 10:31

본문


최종 업데이트 : 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건 1 페이지

검색