# worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
StartServers 2
MaxClients 15
MinSpareThreads 4
MaxSpareThreads 5
ThreadsPerChild 15
MaxRequestsPerChild 50000
</IfModule>
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
지금 내가 여기 혼란 스러워요 내 apache2.conf의이 설정을했습니다.
- 어떤 모듈을 어떤 조건으로로드합니까?
- phusion guys가 작업자 모듈을 사용하도록 제안했습니다. 두 파일 모두 아파치 conf 파일에 존재하기 때문에 mpm_prefork_module에 주석을 달거나 그대로 두어야합니까? 다음
는 아파치에 대한 내 승객의 conf 파일 : 나는 Slicehost에에 256 메가 바이트 슬라이스에 단지 하나의 레일 2.3.2 응용 프로그램을 실행하는거야
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4
PassengerRuby /usr/bin/ruby1.8
PassengerMaxPoolSize 3
PassengerPoolIdleTime 999999
RailsFrameworkSpawnerIdleTime 0
RailsAppSpawnerIdleTime 0
- . 아직 성능에 만족하지 않습니다. 위의 설정은 좋은거야 ??
은 너무 방금 -l 아파치/아파치/apachectl을/(아파치 명령은 무엇이든)를 실행 실행중인 MPM 내용은 아래 ... 홍리의 답변을 티 오프하면 모듈이 나열됩니다. 즐기십시오. – concept47
나는 Ubuntu Intrepid를 사용 중이며 제안한대로 명령을 실행할 때 httpd/apache/httpd2/apache2 -l cmd를 찾을 수 없습니다. 내가 봤 거든 다른 cmd있어 apache2 -l 이것 역시 작동하지 않습니까? Is는 작동하도록되어 있습니까? 아니면 다른 cmd를 사용하여 어떤 MPM이 apache와 함께로드되어 있는지 확인하고 있습니까? – Autodidact
커맨드 라인에서 아파치를 호출하는 방법은 여러 가지가 있습니다. 왜 모든 명령을 슬래시로 구분하여 넣을까요? 슬래시는 기계에서 작동하는 것을 찾을 때까지 각각 시도해야한다는 것을 의미합니다. apachectl -l 또는 apache2ctl -l도 작동합니다. – concept47