출처: http://xinet.kr/tc/184

1) 일일 Access log size 500M 이하 ( 기본설정 )

MaxKeepAliveRequests 1024

< IfModule mpm_worker_module >

   StartServers      8

   ServerLimit       16

   MaxClients      1024

   MinSpareThreads    64

   MaxSpareThreads   512

   ThreadsPerChild   64

   MaxRequestsPerChild  0

< /IfModule >


2) 일일 Access log size 500M ~ 1G 

MaxKeepAliveRequests 2048

< IfModule mpm_worker_module >

   StartServers     16

   ServerLimit      32

   MaxClients      2048

   MinSpareThreads   256

   MaxSpareThreads   1024

   ThreadsPerChild    64

   MaxRequestsPerChild  0

< /IfModule >


3) 일일 Access log size 1G ~ 2G

MaxKeepAliveRequests 4096

< IfModule mpm_worker_module >

   StartServers     8

   ServerLimit      32

   MaxClients      4096

   MinSpareThreads   1024

   MaxSpareThreads   2048

   ThreadsPerChild    128

   MaxRequestsPerChild  0

< /IfModule >


apache 2.4.6 에서는 내용이 달라진 건지 위 설정 내용들 중에 없는 옵션들이 있었다.

그래서 위에 1번 내용을 참고해 아래처럼 수정하였다.

1. httpd-default.conf

MaxKeepAliveRequests 1024


2. httpd-mpm.conf

<IfModule mpm_worker_module>

   StartServers                 8

   ServerLimit                   16

   MinSpareThreads         64

   MaxSpareThreads        512

   ThreadsPerChild          64

   MaxRequestWorkers     1024

   MaxRequestsPerChild   0

</IfModule>










'Dev > apache, php' 카테고리의 다른 글

Html to PDF  (0) 2014.11.18
Apache MaxClients와 Tomcat의 Full GC  (0) 2014.01.13
[펌]PHP에서의 global 변수  (0) 2013.07.29
[Ubuntu 12.10]Apache + PHP 셋업  (1) 2013.05.14

+ Recent posts