apache 에서 간단한 부하 테스트 방법.
TEST. 100명의 유저가 1500번의 호출을 동시에 실시
[11:04:29][root@BlackSky ~]
# ab -n 1500 -c 100 http://호스트네임/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 호스트네임 (be patient)
Completed 150 requests
Completed 300 requests
Completed 450 requests
Completed 600 requests
Completed 750 requests
Completed 900 requests
Completed 1050 requests
Completed 1200 requests
Completed 1350 requests
Completed 1500 requests
Finished 1500 requests
Server Software: Apache
Server Hostname: 호스트네임
Server Port: 80
Document Path: /
Document Length: 0 bytes
Concurrency Level: 100
Time taken for tests: 0.983 seconds
Complete requests: 1500
Failed requests: 0
Write errors: 0
Total transferred: 353400 bytes
HTML transferred: 0 bytes
Requests per second: 1525.36 [#/sec] (mean)
Time per request: 65.558 [ms] (mean)
Time per request: 0.656 [ms] (mean, across all concurrent requests)
Transfer rate: 350.95 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 5 32 23.3 26 132
Processing: 18 32 20.1 27 132
Waiting: 3 28 16.8 25 128
Total: 41 64 40.9 52 255
Percentage of the requests served within a certain time (ms)
50% 52
66% 52
75% 52
80% 52
90% 85
95% 149
98% 250
99% 253
100% 255 (longest request)
ab 의 측정결과에서 다음과 같은 내용을 분석할수 있다.# ab -n 1500 -c 100 http://호스트네임/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 호스트네임 (be patient)
Completed 150 requests
Completed 300 requests
Completed 450 requests
Completed 600 requests
Completed 750 requests
Completed 900 requests
Completed 1050 requests
Completed 1200 requests
Completed 1350 requests
Completed 1500 requests
Finished 1500 requests
Server Software: Apache
Server Hostname: 호스트네임
Server Port: 80
Document Path: /
Document Length: 0 bytes
Concurrency Level: 100
Time taken for tests: 0.983 seconds
Complete requests: 1500
Failed requests: 0
Write errors: 0
Total transferred: 353400 bytes
HTML transferred: 0 bytes
Requests per second: 1525.36 [#/sec] (mean)
Time per request: 65.558 [ms] (mean)
Time per request: 0.656 [ms] (mean, across all concurrent requests)
Transfer rate: 350.95 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 5 32 23.3 26 132
Processing: 18 32 20.1 27 132
Waiting: 3 28 16.8 25 128
Total: 41 64 40.9 52 255
Percentage of the requests served within a certain time (ms)
50% 52
66% 52
75% 52
80% 52
90% 85
95% 149
98% 250
99% 253
100% 255 (longest request)
Server Software |
아파치버전을 표시 |
Server Hostname |
특정사이트의 이름(도메인명) |
Server Port |
웹서비스 사용포트번호 |
Document Path |
초기 문서가 준재하는 웹문서 root위치 |
Time take for tests |
응답시간(매우 중요한 결과 값임) |
Document Length |
초기문서(대부분 index.html, index.htm)의 용량크기 |
Complete requests |
요구에 응답완료한 세션수 |
Failed requests |
요구에 응답실패한 세션수 |
Broken pipe errors |
실패한 에러수 |
Total transferred |
총 전송바이트수 |
HTTP transferred |
총 전송한 HTML바이트수 |
Requests per second |
초당응답요구수 |
Time per request |
요구에 응답한 시간(단위 micro second, 중요한 결과값) |
Time per request |
요구에 응답한 시간 |
Transfer rate |
초당전송가능한 용량 |
'About > Computer' 카테고리의 다른 글
Apache Performance optimization. (1) | 2011.12.21 |
---|---|
Apache Error code (1) | 2011.12.21 |
tpmC (Transcation Processing Perfomance Council) (1) | 2011.12.16 |
Linux Magic SysRq Key Setting (1) | 2011.11.22 |
[번역] 안드로이드의 고아들. (3) | 2011.11.02 |