MPM - Multi-Processing Moudle
1. compile option
--with-mpm=worker
주의 : mysql 컴파일시 --enable-thread-safe-client 의 옵션이 추가 되어야 함.
2. Max Connection 설정 방법
Maxclient 는 StartServers * ThreadsPerChild 로 정해짐 ( MaxClient = StartServer * ThreadsPerChild )Default : 16(DEFAULT_SERVER_LIMIT) * 64(DEFAULT_THREAD_LIMIT) = 1024
가. httpd.conf에서 httpd-mpm.conf 파일을 include 시켜야 한다.
httpd-mpm.conf 파일에서
<IfModule mpm_worker_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
나. apache소스디렉토리/server/mpm/worker/worker.c 파일을 수정한다.
- DEFAULT_SERVER_LIMIT 값을 늘려준다.
- DEFAULT_THREAD_LIMIT 값을 늘려준다.
댓글