회원가입

로그인

아이디
비밀번호
ID/PW 찾기
아직 회원이 아니신가요? 회원가입 하기

인디스쿨 웹서버 튜닝

Profile
:맥노턴
 

설정 변경전

httpd.conf

Timeout            300
KeepAlive          Off
MaxKeepAliveRequests   200
KeepAliveTimeout   15
HostnameLookups    On
EnableMMAP         off
EnableSendfile     off
StartServers       10
MinSpareServers    5
MaxSpareServers    10
(ServerLimit       항목없음 )
MaxClients         150

<IfModule prefork.c>
StartServers        10
MinSpareServers      5
MaxSpareServers     10
MaxClients         150
MaxRequestsPerChild  0
</IfModule>

<IfModule worker.c>
StartServers         2
MaxClients         200
MinSpareThreads     50
MaxSpareThreads    100
ThreadsPerChild     50
MaxRequestsPerChild  0
</IfModule>

[root@www2 bin]# ab -c 1000 -n 1000 -t 10 http://indischool.com/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.121.2.1 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking indischool.com (be patient)
Finished 871 requests


Server Software:        Apache
Server Hostname:        indischool.com
Server Port:            80

Document Path:          /
Document Length:        485 bytes

Concurrency Level:      1000
Time taken for tests:   21.223863 seconds
Complete requests:      871
Failed requests:        0
Write errors:           0
Total transferred:      640185 bytes
HTML transferred:       422435 bytes
Requests per second:    41.04 [#/sec] (mean)
Time per request:       24367.237 [ms] (mean)
Time per request:       24.367 [ms] (mean, across all concurrent requests)
Transfer rate:          29.45 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   10 175.7      0    2999
Processing:  9113 11581 1150.0  12118   12128
Waiting:       18 5088 3045.6   6061    9105
Total:       9113 11592 1141.3  12118   12128

Percentage of the requests served within a certain time (ms)
  50%  12118
  66%  12120
  75%  12121
  80%  12122
  90%  12122
  95%  12127
  98%  12128
  99%  12128
 100%  12128 (longest request)


설정변경 후

Timeout            300
KeepAlive          On
MaxKeepAliveRequests 1024
KeepAliveTimeout   25
HostnameLookups    Off
EnableMMAP         off
EnableSendfile     off

<IfModule prefork.c>
MaxClients       150
StartServers     5
MinSpareServers  5
MaxSpareServers 10
</IfModule>

<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>


[root@www2 conf]# ../bin/ab -c 1000 -n 1000 -t 10 http://indischool.com/
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking indischool.com (be patient)
Completed 5000 requests
Completed 10000 requests
Completed 15000 requests
Completed 20000 requests
Completed 25000 requests
Completed 30000 requests
Completed 35000 requests
Completed 40000 requests
Finished 40805 requests


Server Software:        Apache
Server Hostname:        indischool.com
Server Port:            80

Document Path:          /
Document Length:        485 bytes

Concurrency Level:      1000
Time taken for tests:   10.6029 seconds
Complete requests:      40805
Failed requests:        0
Write errors:           0
Total transferred:      30059295 bytes
HTML transferred:       19835045 bytes
Requests per second:    4078.04 [#/sec] (mean)
Time per request:      
245.216 [ms] (mean)
Time per request:       0.245 [ms] (mean, across all concurrent requests)
Transfer rate:          2933.63 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        3   35 249.4     20    9021
Processing:    17   42 182.7     37    6067
Waiting:        7   31 182.3     26    6049
Total:         36   78 358.5     59    9095

Percentage of the requests served within a certain time (ms)
  50%     59
  66%     63
  75%     65
  80%     67
  90%     69
  95%     71
  98%     92
  99%    108
 100%   9095 (longest request)

Profile
:맥노턴
레벨 31
967878/
-1%
McNorton & Education Lab.
Director
댓글
2
  • 박성범
    박성범
    내댓글
    2006.09.13
    StartServers 20
    MinSpareServers 15
    MaxSpareServers 45
    ServerLimit 512
    MaxClients 512

    이것은
    <IfModule prefork.c>
    StartServers 10
    MinSpareServers 5
    MaxSpareServers 10
    MaxClients 150
    MaxRequestsPerChild 0
    </IfModule>
    이부분을 보고 하신 건가요?
    쓰레드 방식은
    <IfModule worker.c>
    StartServers 2
    MaxClients 200
    MinSpareThreads 50
    MaxSpareThreads 100
    ThreadsPerChild 50
    MaxRequestsPerChild 0
    </IfModule>
    이 부분을 수정하는 것으로 아는데....
    아닌가요?
  • :맥노턴
    작성자
    2006.09.14
    각각 수정해보고 ab 커맨드로 테스트해봐서 결과로 판정하면 어떨지...
댓글 쓰기
권한이 없습니다.

번호 제목 조회 수 날짜
291 Windows/DOS [게임] 지뢰찾기의 재미있는 키 22681 06.12.11
290 Windows/DOS ClearType Tuner : WinXP 17054 06.11.21
289 알고리즘 주민등록번호 검사원리 51321 06.11.08
288 컴퓨터바이러스 피싱? 왜 속아 넘어가는걸까? 10825 06.11.08
287 컴퓨터바이러스 Ad-Aware SE Pro. r1 (유해가능프로그램 제거도구) 12763 06.11.05
286 Unix/Linux DNS (Bind-9.1.3-4 셋팅 및 DNS 셋팅) 17482 06.10.17
285 Windows/DOS 시스템종료시 ccApp.exe 닫기 오류 10922 06.10.01
284 Unix/Linux 리눅스 매뉴얼 - 한소프트리눅스2006 설치 19433 06.09.29
283 Unix/Linux 정전후 파일시스템 정보 오류 21076 06.09.27
282 컴퓨터바이러스 [안랩] 프로세스와 시작 프로그램을 살펴봤는가? 10899 06.09.25
281 Javascript 소스 보기 막는 방법 모음 15685 06.09.16
서버운영 인디스쿨 웹서버 튜닝 (2) 13472 06.09.13
279 Unix/Linux 아파치2 성능 벤치마킹 & 튜닝 14829 06.09.13
278 컴퓨터바이러스 Trojan.Virkel.39936 > 프루나와 관련? 11155 06.09.11
277 Unix/Linux (메모) MX레코드 정보 읽어보기 11795 06.08.29
276 White Hacking 파일을 완전히 삭제 "Eraser" v5.8 10111 06.08.24
275 소프트웨어안내 하나의 이미지를 여러 조각의 타일형태로 나누기 12006 06.08.22
274 Javascript embed된 미디어 재생기의 색 바꾸기 16868 06.08.22
273 서버운영 웹호스팅시 퍼미션 문제로 파일이 삭제되지 않을 때... (1) 15324 06.06.06
272 정보보호/보안 SQL 인젝션 9735 06.05.16

로그인

아이디
비밀번호
ID/PW 찾기
아직 회원이 아니신가요? 회원가입 하기