APM 튜닝 > LINUX

본문 바로가기

사이트 내 전체검색

뒤로가기 LINUX

APM 튜닝

페이지 정보

작성자 최고관리자 작성일 21-02-10 17:00 조회 8,735 댓글 0

본문

APM 튜닝 | 아파치 웹서버  2006.07.18 16:39 

케이나즈(kledblue)  카페스탭  http://cafe.naver.com/webhostingforum/45 


 1. 아파치 웹 서버 튜닝
- apache/src/include/httpd.h:
 HARD_SERVER_LIMIT 256 -> 1280
 - apache/conf/httpd.conf:
 MaxKeepAliveRequests 100 -> 10000
 KeepAliveTimeout 15 -> 30
 MinSpareServers 5 -> 20
 MaxSpareServers 10 -> 40
 StartServers 5 -> 20
 MaxClients 256 -> 1024




 2. 커널 소프트 레벨 튜닝
- ulimit -n 32768
 - /proc/sys/fs/file-max: 4096 -> 32768
 - /proc/sys/fs/inode-max: 16384 -> 65536
 - /proc/sys/net/ipv4/tcp_keepalive_time: 7200 -> 1200
 - /proc/sys/net/ipv4/tcp_fin_timeout: 180 -> 30
 - /proc/sys/net/ipv4/tcp_sack: 1 -> 0
 - /proc/sys/net/ipv4/tcp_timestamps: 1 -> 0
 - /proc/sys/net/ipv4/tcp_syncookies: 0 -> 1
 - /proc/sys/net/ipv4/tcp_retries1: 7 -> 2
 - /proc/sys/net/ipv4/tcp_max_syn_backlog: 128 -> 8192
 - /proc/sys/net/ipv4/tcp_window_scaling: 1-> 02. 커널 소프트 레벨 튜닝
- ulimit -n 32768
 - /proc/sys/fs/file-max: 4096 -> 32768
 - /proc/sys/fs/inode-max: 16384 -> 65536
 - /proc/sys/net/ipv4/tcp_keepalive_time: 7200 -> 1200
 - /proc/sys/net/ipv4/tcp_fin_timeout: 180 -> 30
 - /proc/sys/net/ipv4/tcp_sack: 1 -> 0
 - /proc/sys/net/ipv4/tcp_timestamps: 1 -> 0
 - /proc/sys/net/ipv4/tcp_syncookies: 0 -> 1
 - /proc/sys/net/ipv4/tcp_retries1: 7 -> 2
 - /proc/sys/net/ipv4/tcp_max_syn_backlog: 128 -> 8192
 - /proc/sys/net/ipv4/tcp_window_scaling: 1-> 0


입력예)
 [root@eshop ipv4]# echo 32768 > /proc/sys/fs/file-max
 [root@eshop ipv4]# echo 1200 > /proc/sys/net/ipv4/tcp_keepalive_time
 [root@eshop ipv4]# echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout
 [root@eshop ipv4]# echo 0 > /proc/sys/net/ipv4/tcp_sack
 [root@eshop ipv4]# echo 0 > /proc/sys/net/ipv4/tcp_timestamps
 [root@eshop ipv4]# echo 1 > /proc/sys/net/ipv4/tcp_syncookies


 ulimit -n 32768
 echo 32768 > /proc/sys/fs/file-max
 echo 65536 > /proc/sys/fs/inode-max
 echo 1200 > /proc/sys/net/ipv4/tcp_keepalive_time
 echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout
 echo 0 > /proc/sys/net/ipv4/tcp_sack
 echo 0 > /proc/sys/net/ipv4/tcp_timestamps
 echo 1 > /proc/sys/net/ipv4/tcp_syncookies
 echo 2 > /proc/sys/net/ipv4/tcp_retries1
 echo 8192 > /proc/sys/net/ipv4/tcp_max_syn_backlog
 echo 0 > /proc/sys/net/ipv4/tcp_window_scaling


http://webzero.co.kr

댓글목록 0

등록된 댓글이 없습니다.

Copyright © beautipia.co.kr. All rights reserved.

contact : webmaster@beautipia.co.kr

PC 버전으로 보기