X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=apache-mpm.conf;h=51cd43d19618d1f3f2b0f2a9d2305c9cb14b252b;hb=666e3a2ea6725874883333198d83cd718b942ff2;hp=dc17d60652d1edc9d0e0cc87e3c4e6ef4ca182e6;hpb=1a06baced8db9609586510d6c18249d721f61296;p=packages%2Fapache.git diff --git a/apache-mpm.conf b/apache-mpm.conf index dc17d60..51cd43d 100644 --- a/apache-mpm.conf +++ b/apache-mpm.conf @@ -1,7 +1,8 @@ # # Server-Pool Management (MPM specific) # -# Use prefork as default + +# MPM to use (only one at a time) LoadModule mpm_prefork_module modules/mod_mpm_prefork.so #LoadModule mpm_worker_module modules/mod_mpm_worker.so #LoadModule mpm_event_module modules/mod_mpm_event.so @@ -25,14 +26,32 @@ Mutex file:/var/run/httpd/ # active mpm. # +# prefork MPM # StartServers: number of server processes to start -# MinSpareThreads: minimum number of server processes which are kept spare -# MaxSpareThreads: maximum number of server processes which are kept spare -# MaxRequestWorkers: Maximum number of connections that will be processed simultaneously -# MaxRequestsPerChild: maximum number of requests a server process serves +# MinSpareServers: minimum number of server processes which are kept spare +# MaxSpareServers: maximum number of server processes which are kept spare +# MaxRequestWorkers: maximum number of server processes allowed to start +# MaxConnectionsPerChild: maximum number of requests a server process serves + + StartServers 5 + MinSpareServers 5 + MaxSpareServers 10 + MaxRequestWorkers 150 + MaxConnectionsPerChild 0 + -StartServers 5 -MinSpareServers 5 -MaxSpareServers 10 -MaxRequestWorkers 150 -MaxConnectionsPerChild 5 +# worker MPM +# StartServers: initial number of server processes to start +# MaxRequestWorkers: 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 +# MaxConnectionsPerChild: maximum number of requests a server process serves + + StartServers 2 + MaxRequestWorkers 150 + MinSpareThreads 25 + MaxSpareThreads 75 + ThreadsPerChild 25 + MaxConnectionsPerChild 0 +