Skip to content

CHICPRO

  • Life Log
  • Cycling Log
  • Photo Log
    • Portrait
    • Landscape
    • Flower
    • Etc
  • Coding Log
  • Information

Siege를 이용한 웹서버 부하테스트

2014-01-14 by 편리

회사에서 웹서버 세팅 중이다. 웹서버를 세팅하게 되면 스트레스 테스트를 해봐야 하는데 리눅스에서 오픈소스 프로그램인 Siege를 설치하고 테스트를 해봤다.  Siege 다운로드는 http://www.joedog.org/siege-home/ 에서 가능하다. 테스트를 위해 3.05. 버전을 다운로드하여 설치하였다.

# wget http://www.joedog.org/pub/siege/siege-3.0.5.tar.gz
# tar xzvf siege-3.0.5.tar.gz
# cd cd siege-3.0.5
# ./configure
# make
# make install

설치는 /usr/local/bin 에 된다.

웹서버의 부하 테스트는 간단하게 아래처럼 진행한다. 아래는 1분동안 25명이 접속한다는 조건이다.

# siege -c25 -t1M www.example.com

실행결과는 아래와 같이 표시된다.

Lifting the server siege...      done.

Transactions:		         619 hits
Availability:		      100.00 %
Elapsed time:		       59.74 secs
Data transferred:	        8.62 MB
Response time:		        1.89 secs
Transaction rate:	       10.36 trans/sec
Throughput:		        0.14 MB/sec
Concurrency:		       19.59
Successful transactions:         619
Failed transactions:	           0
Longest transaction:	        2.39
Shortest transaction:	        0.80

이런 식으로 테스트를 하면서 서버의 최적 설정을 찾아서 적용하면 될 것이다.

Post navigation

Previous Post:

서버 세팅

Next Post:

DB서버 세팅 및 Replication 작업

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • SK 세븐모바일 유심 셀프교체
  • php 배열 연산에서 + 와 array_merge 의 차이
  • pcntl_fork 를 이용한 다중 프로세스 실행
  • 아이폰 단축어를 이용하여 주중 공휴일엔 알람 울리지 않게 하기
  • 구글 캘린더 전체일정 재동기화
  • OpenLiteSpeed 웹서버에 HTTP 인증 적용
  • OpenLiteSpeed 웹어드민 도메인 연결
  • WireGuard를 이용한 VPN 환경 구축
  • Ubuntu 22.04 서버에 OpenLiteSpeed 웹서버 세팅
  • 맥 vim 세팅

Recent Comments

  • 편리 on 업무관리용 그누보드 게시판 스킨
  • 임종섭 on 업무관리용 그누보드 게시판 스킨
  • 캐논 5D 펌웨어 | Dslr 펌웨어 업그레이드 방법 82 개의 베스트 답변 on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • Top 5 캐논 5D 펌웨어 Top 89 Best Answers on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • 편리 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 임팀장 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 편리 on Notepad++ NppFTP 플러그인 수동 설치
  • paul-j on Notepad++ NppFTP 플러그인 수동 설치
  • YS on Windows 10 iCloud 사진 저장 폴더 변경
  • 편리 on Docker를 이용한 Centos7 + httpd + php 5.4 개발환경 구축

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 CHICPRO | Built using WordPress and SuperbThemes