2

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.

Hyppy
  • 15,458
  • 1
  • 37
  • 59

1 Answers1

1

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
quanta
  • 50,327
  • 19
  • 152
  • 213