설 연수
하하호홓
설 연수
전체 방문자
오늘
어제
  • 분류 전체보기 (231)
    • Back-End (2)
      • Java (20)
      • JSP (13)
      • Spring (18)
      • Kotlin (0)
      • node.js (0)
    • Front-End (68)
      • JavaScript (19)
      • jQuery (39)
      • Angular (4)
      • HTML (5)
    • Dev-Ops (12)
      • Linux, Cloud (5)
      • docker, k8s (5)
      • ElasticSeach (2)
    • Other (33)
      • OOP (3)
      • 알고리즘 (2)
      • DB (12)
      • Git (1)
      • Swift (4)
    • Backup (65)

블로그 메뉴

    공지사항

    인기 글

    태그

    • 크로스도메인
    • INVALID
    • MYSQL
    • mongodb
    • flex
    • Kafka
    • angular4
    • 404 error
    • docker
    • CORS
    • RESTful
    • angular 콜백
    • jquery invalid
    • 패스트캠퍼스
    • Redis
    • page not found
    • angular2
    • jOOQ
    • Angular
    • angular callback

    최근 댓글

    최근 글

    티스토리

    hELLO · Designed By 정상우.
    설 연수

    하하호홓

    Dev-Ops/Linux, Cloud

    WebApplication 스트레스 테스트

    2020. 4. 12. 11:59

    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
      'Dev-Ops/Linux, Cloud' 카테고리의 다른 글
      • AWS EC2에 카프카 클러스터 구성시 에러
      • [AWS실습] ubuntu에서 아파치 설치.
      • 리눅스명령어 완전기초
      • vi에디터 명령어
      설 연수
      설 연수

      티스토리툴바