Etc

아피치 ab를 이용하여 웹 동시접근 테스트

아롱사태남 2017. 8. 11. 16:02
반응형

[유용한 옵션]
-n requests
      Number of requests to perform for the benchmarking session.
      The default is to  just  perform a single request which usually leads to non-representative
      benchmarking results.
     요청을 수행할 개수

-c concurrency
        Number of multiple requests to perform at a time. Default is one request at a time.
        요청을 만들 개수로 동시 사용자 개념


-v verbosity
      Set verbosity level - 4 and above prints information  on  headers,  3  and  above 
       printsresponse codes (404, 200, etc.), 2 and above prints warnings and info.
      얼마나 자세한 정보를 화면에 출력해 줄 것인지 결정

-w HTML
     Print  out  results in HTML tables. Default table is two columns wide, with a white background.
     문서형식으로 테이블로 만들어 결과를 화면에 출력

-k HTTP
     Enable  the  HTTP KeepAlive feature, i.e., perform multiple requests within one HTTP session.
     Default is no KeepAlive.
     프로토콜의 지속연결 (KeepAlive) 기능을 사용


  [사용 예제]

  형식 : ab –n 시도횟수 –c 동시접속수 http://도메인:포트번호/
  # ab -n 100 -c 30 http://www.test.com:80/




반응형