AWS우분투세팅.
1. sudo apt-get update
2. sudo apt-get install apache2-utils
테스트진행
3. ab를 치면 옵션이 나온다.(ApacheBench)
4. ab -n 요청카운트 -c 동시접속자카운트 http://URL/
ex) ab -n 400 -c 1 http://52.79.234.100/ <= http://52.79.234.100/에 1명의 동시접속자 400번호출
5. 결과 확인
Complete requests : 성공개수
Failed requests : 실패개수
Time taken for tests : 총 소요시간
Requests per second : 초당처리속도
Time per request : 개별처리속도
ubuntu@ip-172-31-37-40:~$ ab -n 400 -c 1 http://52.79.234.100/
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 52.79.234.100 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 400 requests
Server Software: Apache
Server Hostname: 52.79.234.100
Server Port: 80
Document Path: /
Document Length: 27521 bytes
Concurrency Level: 1
Time taken for tests: 9.736 seconds
Complete requests: 400
Failed requests: 0
Total transferred: 11161600 bytes
HTML transferred: 11008400 bytes
Requests per second: 41.08 [#/sec] (mean)
Time per request: 24.341 [ms] (mean)
Time per request: 24.341 [ms] (mean, across all concurrent requests)
Transfer rate: 1119.52 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.6 0 5
Processing: 22 24 1.7 23 46
Waiting: 21 23 1.5 23 45
Total: 22 24 2.0 24 47
WARNING: The median and mean for the initial connection time are not within a normal deviation
These results are probably not that reliable.
Percentage of the requests served within a certain time (ms)
50% 24
66% 24
75% 25
80% 25
90% 27
95% 28
98% 29
99% 31
100% 47 (longest request)
'Dev-Ops > Linux, Cloud' 카테고리의 다른 글
AWS EC2에 카프카 클러스터 구성시 에러 (0) | 2020.05.13 |
---|---|
[AWS실습] ubuntu에서 아파치 설치. (0) | 2020.04.10 |
리눅스명령어 완전기초 (0) | 2012.06.28 |
vi에디터 명령어 (1) | 2012.04.16 |