회원가입

로그인

아이디
비밀번호
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
968538/
-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 커맨드로 테스트해봐서 결과로 판정하면 어떨지...
댓글 쓰기
권한이 없습니다.

번호 제목 조회 수 날짜
231 XE 게시판 ID 변경 도구 (mT_id_changer.php) (4) 42958 05.09.02
230 XE 게시판 권한 일괄 변경 도구 (mT_perm_batch.php) (9) 28587 05.09.04
229 인터넷활용팁 자꾸 실행되는 넷피아 삭제하기 12748 05.09.20
228 서버운영 IPX를 TCP/IP로 에뮬레이트하기 12676 05.11.13
227 Windows/DOS Outlook의 PDFmaker 툴바 없애기/위치바꾸기 9568 06.01.10
226 [컴퓨터사이언스랩] 1MB는 몇 바이트? (1) 14823 06.01.22
225 [컴퓨터사이언스랩] 디스크의 용량 계산 13809 06.01.22
224 Unix/Linux DNS세팅문제 : abc.com 은 되고, www.abc.com 은 안될 때... 10489 06.02.07
223 정보보호/보안 아직도 V3를 최고라고 생각하는가?? (2) 9710 06.04.19
222 정보보호/보안 개인정보 입력요구에 대한 처벌강화... 11019 06.04.19
221 소프트웨어안내 야후 위젯 날씨정보의 세심함... 11493 06.04.24
220 정보보호/보안 SQL 인젝션 9736 06.05.16
219 서버운영 웹호스팅시 퍼미션 문제로 파일이 삭제되지 않을 때... (1) 15324 06.06.06
218 Javascript embed된 미디어 재생기의 색 바꾸기 16868 06.08.22
217 소프트웨어안내 하나의 이미지를 여러 조각의 타일형태로 나누기 12006 06.08.22
216 White Hacking 파일을 완전히 삭제 "Eraser" v5.8 10111 06.08.24
215 Unix/Linux (메모) MX레코드 정보 읽어보기 11795 06.08.29
214 컴퓨터바이러스 Trojan.Virkel.39936 > 프루나와 관련? 11155 06.09.11
213 Unix/Linux 아파치2 성능 벤치마킹 & 튜닝 14829 06.09.13
서버운영 인디스쿨 웹서버 튜닝 (2) 13472 06.09.13

로그인

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