강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

ab를 이용한 특정 웹사이트의 응답속도를 KeepAlive속성 활성화하여 테스트하기

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

ab를 이용한 특정 웹사이트의 응답속도를 KeepAlive속성 활성화하여 테스트하기

 

 

 

 

 

ab명령어에 -k옵션을 사용하면 KeepAlive를 활성화하여 테스트한다.

 

 

 

 

 KeepAlive란 한 개의 세션에서 여러개의 요구를 할 경우 동일한 세션을 유지하는 것을 의미하며 이 옵션을 사용하면 KeepAlive를 활성화하여 테스트한다.

 

 

 

 

 기본값은 KeepAlive가 비활성화된 상태이다.

 

 

 

 

 

 

[root@RockyLinux local]# ab -k http://www.yahoo.com/

This is ApacheBench, Version 2.3 <$Revision: 1879490 $>

Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/

Licensed to The Apache Software Foundation, http://www.apache.org/

 

Benchmarking www.yahoo.com (be patient).....done

 

 

Server Software:        ATS

Server Hostname:        www.yahoo.com

Server Port:            80

 

Document Path:          /

Document Length:        8 bytes

 

Concurrency Level:      1

Time taken for tests:   0.202 seconds

Complete requests:      1

Failed requests:        0

Non-2xx responses:      1

Keep-Alive requests:    1

Total transferred:      1125 bytes

HTML transferred:       8 bytes

Requests per second:    4.94 [#/sec] (mean)

Time per request:       202.339 [ms] (mean)

Time per request:       202.339 [ms] (mean, across all concurrent requests)

Transfer rate:          5.43 [Kbytes/sec] received

 

Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:      100  100   0.0    100     100

Processing:   102  102   0.0    102     102

Waiting:      102  102   0.0    102     102

Total:        202  202   0.0    202     202

[root@RockyLinux local]#

 

즉 이번 예에서는 ab유틸리티로 www.yahoo.com웹사이트의 응답속도를 측정하면서 KeepAlive속성을 활성화하기 위하여 -k옵션을 사용한 것이다.

 

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,034 명
  • 현재 강좌수 :  35,791 개
  • 현재 접속자 :  95 명