APM 튜닝 > LINUX

본문 바로가기
사이트 내 전체검색

LINUX

APM 튜닝

페이지 정보

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

본문

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

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

  • 게시물이 없습니다.

접속자집계

오늘
182
어제
2,033
최대
6,642
전체
1,133,885
contact : webmaster@beautipia.co.kr
Copyright © beautipia.co.kr. All rights reserved.