'2008/04'에 해당되는 글 3건
- 2008/04/26 개발자가 꼭 알아야할 보안가이드 라인
- 2008/04/26 [SSO] - DB를 이용한 도메인간 세션공유 처리
- 2008/04/26 AB 사용법 - Apache Benchmarking
Guide 1. 세션유지를 위해서 Cookie를 사용할 경우, 위/변조에 대비해야한다.
서로 다른 도메인의 로그인 정보를 공유하긴 위한 목적으로 구현했습니다.
나름 보안에 취약하지 않게(?) 만들었었고요.
잘 응용해서 사용하시기 바랍니다.^^
$./ab -V
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) 1998-2002 The Apache Software Foundation, http://www.apache.org/
$./ab -h
Usage: ./ab [options] [http://]hostname[:port]/path
Options are:
-n requests Number of requests to perform : 벤치마킹을 위한 요청수
-c concurrency Number of multiple requests to make : 하나의 요청당 체크할 다중 요구수 (기본값 : 1)
-t timelimit Seconds to max. wait for responses : 제한시간
-p postfile File containg data to POST : POST 할 파일 지정
-T content-type Content-type header for POSTing
-v verbosity How much troubleshooting info to print : 자세한 헤더정보 출력 (유용함)
-w Print out results in HTML tables : HTML 형태로 출력 (유용함)
-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)
Example)
$./ab -c 30 -n 10 http://www.naver.com/
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) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking www.naver.com (be patient).....done
Server Software: Apache
Server Hostname: www.naver.com
Server Port: 80
Document Path: /
Document Length: 58985 bytes
Concurrency Level: 30
Time taken for tests: 0.979 seconds
Complete requests: 10
Failed requests: 9
(Connect: 0, Length: 9, Exceptions: 0)
Broken pipe errors: 0
Total transferred: 1102138 bytes
HTML transferred: 1094313 bytes
Requests per second: 10.21 [#/sec] (mean)
Time per request: 2937.00 [ms] (mean)
Time per request: 97.90 [ms] (mean, across all concurrent requests)
Transfer rate: 1125.78 [Kbytes/sec] received
Connnection Times (ms)
min mean[+/-sd] median max
Connect: 1 6 13.1 2 44
Processing: 327 672 228.5 666 978
Waiting: 325 671 228.2 665 977
Total: 327 677 222.9 668 979
Percentage of the requests served within a certain time (ms)
50% 668
66% 866
75% 892
80% 909
90% 979
95% 979
98% 979
99% 979
100% 979 (last request)
* ab 실행파일은 아파치를 설치한 디렉토리/bin 에 있습니다.

Prev