Available Multi-Processing Modules (MPMs):
- mpm_prefork_module – The prefork MPM uses multiple child processes and each child process has only one thread and ultimately one process/thread is handling one connection at a time.
- mpm_worker_module – The worker MPM uses multiple child processes and each child process can have many threads and each thread handles one connection at a time.
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
LoadModule mpm_worker_module modules/mod_mpm_worker.so
# 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> ServerLimit 16 StartServers 2 MaxClients 400 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 </IfModule>