Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The following is a segment from a current Apache installation I'm attempting to decipher for bad performance. I noticed the below, both uncommented:

<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          200
    MaxRequestsPerChild   0
</IfModule>

<IfModule mpm_worker_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75 
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>

When prefork and worker are both defined, what happens? We're using PHP, so I assume that prefork would be what we want.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

When prefork and worker are both defined, what happens? We're using PHP, so I assume that prefork would be what we want.

Exactly. You can confirm with:

# apachectl -l

or

# httpd -V
share|improve this answer
    
apache2 -V shows -D APACHE_MPM_DIR="server/mpm/prefork". Thanks! –  Hyppy Jul 27 '11 at 14:20
    
if you are using apache2 - apache2ctl -l (part of the apache2.X-common package on Ubuntu) –  Jeremy Hajek Apr 5 at 3:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.