0

I came across this Apache configuration:

<IfModule mpm_prefork_module>
    StartServers          16
    MinSpareServers       16
    MaxSpareServers       32
    ServerLimit           400
    MaxClients            400
    MaxRequestsPerChild   10000
</IfModule>

<IfModule mpm_worker_module>
    StartServers          4
    MaxClients            1024
    MinSpareThreads       64
    MaxSpareThreads       192
    ThreadsPerChild       64
    MaxRequestsPerChild   0
</IfModule>

Currently, only the mpm_prefork_module is installed. But what happens if the mpm_worker_module is installed on the server? This configuration worries me.

This question is similar, but the answer only says how to find the current MPM being used, not what the standard behavior is, or if the behavior is undefined.

Paul Draper
  • 287
  • 5
  • 22
  • 1
    From what I remember, when you install one, it disables the other. Could be wrong but that is what I remember. – ETL Mar 09 '14 at 00:52

2 Answers2

2

It's impossible for both to be used - only one of the MPMs can be in use at a time.

How you configure which is being used depends on how your distribution handles it, but you shouldn't be worried about both at the same time in the same running instance, because that can't happen.

Shane Madden
  • 112,982
  • 12
  • 174
  • 248
-1

Default when you installed them from binary (rpm, deb, ... or via yum, apt-get, ...), it alway use prefork. If you want to run with worker, need build from source. But worker just best work if you run fcgi php.

tquang
  • 256
  • 1
  • 6