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

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


최종 업데이트 : 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
번호 분류 제목 작성자 등록일 조회수
645 기초강좌 NFS server unable to open connection to tcp6/udp6 networks rootman 09-27 2212
644 php [php] mssql ms-sql 한글 변환 끄적임.. 정리 rootman 03-29 3244
643 기초강좌 java vim 에서 자바 환경 만들기 rootman 02-16 2436
642 삭제예정 [xencenter] xenserver tool 설치 rootman 08-24 3405
641 mysql [mysql] Creating a File-Per-Table Tablespace Outside the Dat… rootman 08-03 3587
640 기초강좌 Centos Xwindow 설치 rootman 06-16 4449
639 php [php] highlight 함수 rootman 04-01 4309
638 qmail [qmail] qmail-scanner에 filtering 된 이메일 처리 rootman 02-14 4753
637 Shell [날짜] awk를 이용하여 unixtime의 시간 차 구하기 rootman 01-27 5626
636 기초강좌 centos에 그놈(gnome) 설치하기 rootman 01-10 5549
635 쉘(awk) [awk] shell 변수 사용하기 rootman 12-27 5257
634 기초강좌 서버 캐시 메모리 초기화하기 (drop_caches) rootman 12-11 6223
633 windows tips 그리드 제거 배치 스크립트 rootman 11-28 5828
632 기초강좌 패스워드 lockgin control rootman 09-06 4
631 windows tips win7 자동 로그인 설정하기 rootman 08-18 5650
 1  2  3  4  5  6  7  8  9  10    
AND OR