리눅스 분류
httpd 개수
작성자 정보
- pantarei 작성
- 작성일
컨텐츠 정보
- 1,955 조회
- 1 댓글
- 0 추천
- 목록
본문
httpd 개수에 대한 질문입니다.
# ps -ef | grep httpd
user1 513 325 0 07:19:22 pts/tb 0:00 grep httpd
www 15500 15499 0 5월 20 ? 0:00 /apache/bin/httpd -k start
www 15505 15499 0 5월 20 ? 0:02 /apache/bin/httpd -k start
www 20718 15499 0 17:20:36 ? 0:00 /apache/bin/httpd -k start
root 15499 1 0 5월 20 ? 0:00 /apache/bin/httpd -k start
www 20848 15499 0 17:24:29 ? 0:00 /apache/bin/httpd -k start
아파치를 실행시키면 httpd 이 5개가 떠있습니다.
설정은
/apache/conf/httpd.conf
Include conf/extra/httpd-mpm.conf
/apache/conf/extra/httpd-mpm.conf
<IfModule mpm_worker_module>
StartServers 2 <=========================== 1)
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_prefork_module>
StartServers 5 <=========================== 2)
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
# httpd -l
Compiled in modules:
core.c
worker.c <==================================== 3)
http_core.c
mod_so.c
1) StartServers 가 2로 설정되어 있으니깐 처음에는 httpd 프로세스가 2개가 떠야 하는게 아닌가요?
2) httpd 이 5개인데 prefork 로 설정된건지...
3) worker 로 설정된게 맞죠?
# ps -ef | grep httpd
user1 513 325 0 07:19:22 pts/tb 0:00 grep httpd
www 15500 15499 0 5월 20 ? 0:00 /apache/bin/httpd -k start
www 15505 15499 0 5월 20 ? 0:02 /apache/bin/httpd -k start
www 20718 15499 0 17:20:36 ? 0:00 /apache/bin/httpd -k start
root 15499 1 0 5월 20 ? 0:00 /apache/bin/httpd -k start
www 20848 15499 0 17:24:29 ? 0:00 /apache/bin/httpd -k start
아파치를 실행시키면 httpd 이 5개가 떠있습니다.
설정은
/apache/conf/httpd.conf
Include conf/extra/httpd-mpm.conf
/apache/conf/extra/httpd-mpm.conf
<IfModule mpm_worker_module>
StartServers 2 <=========================== 1)
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_prefork_module>
StartServers 5 <=========================== 2)
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
# httpd -l
Compiled in modules:
core.c
worker.c <==================================== 3)
http_core.c
mod_so.c
1) StartServers 가 2로 설정되어 있으니깐 처음에는 httpd 프로세스가 2개가 떠야 하는게 아닌가요?
2) httpd 이 5개인데 prefork 로 설정된건지...
3) worker 로 설정된게 맞죠?
관련자료
-
이전
-
다음
댓글 1
suki님의 댓글
- suki
- 작성일
아파치에서 옵션을 주고 컴파일하지않으면 기본적으로 prefork 형태로 운영됨니다
그리고 아파치스타트시 프로세서가 5개가 올라오는겻은 MinSpareServers 값이 5개이기 때문입니다 .
그리고 아파치스타트시 프로세서가 5개가 올라오는겻은 MinSpareServers 값이 5개이기 때문입니다 .