본문 바로가기

WEB - Apache 계열/각종 설정

[OHS] 동시접속자 수에 따른 MPM 튜닝 값

#. 참고 글

http://smartjy.blogspot.com/2017/05/apache-worker.html

https://chanchan-father.tistory.com/124

 


 

MPM Worker 기준 Default 세팅 값

<IfModule mpm_worker_module>
StartServers 3
MinSpareThreads 75
MaxSpareThreads 250
ThreadsPerChild 25
MaxRequestWorkers 400
MaxConnectionsPerChild 0
Mutex fcntl:${ORACLE_INSTANCE}/servers/${COMPONENT_NAME}/logs
</IfModule>

 

 

MPM Worker 기준 동시접속자 수 2048명 세팅 값 (Apache 2.2 기준)

(MaxClients 값은 ServerLimit 과 ThreadsPerChild 의 값을 곱한 값과 같아야 한다.)

<IfModule mpm_worker_module>
StartServers 4
ServerLimit 32
ThreadLimit 128
MaxClients 2048
MinSpareThreads 64
MaxSpareThreads 128
ThreadsPerChild 64
MaxConnectionsPerChild 0
</IfModule>

 

 

MPM Worker 기준 동시접속자 수 2048명 세팅 값 (Apache 2.4 기준)

<IfModule mpm_event_module>
    StartServers             16
    ServerLimit              32
    MinSpareThreads         512
    MaxSpareThreads        1024
    ThreadsPerChild          64
    MaxRequestWorkers      2048
    MaxConnectionsPerChild    0
    AsyncRequestWorkerFactor  1
</IfModule>

 

 

4096명 기준

<IfModule mpm_event_module>
    StartServers             64
    ServerLimit              64
    MinSpareThreads        1024
    MaxSpareThreads        2048
    ThreadsPerChild          64
    MaxRequestWorkers      4096
    MaxConnectionsPerChild    0
    AsyncRequestWorkerFactor  1
</IfModule>