github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_4_58/conf/extra/httpd-mpm.conf (about)

     1  #
     2  # Server-Pool Management (MPM specific)
     3  # 
     4  
     5  #
     6  # PidFile: The file in which the server should record its process
     7  # identification number when it starts.
     8  #
     9  # Note that this is the default PidFile for most MPMs.
    10  #
    11  <IfModule !mpm_netware_module>
    12      PidFile "logs/httpd.pid"
    13  </IfModule>
    14  
    15  #
    16  # Only one of the below sections will be relevant on your
    17  # installed httpd.  Use "apachectl -l" to find out the
    18  # active mpm.
    19  #
    20  
    21  # prefork MPM
    22  # StartServers: number of server processes to start
    23  # MinSpareServers: minimum number of server processes which are kept spare
    24  # MaxSpareServers: maximum number of server processes which are kept spare
    25  # MaxRequestWorkers: maximum number of server processes allowed to start
    26  # MaxConnectionsPerChild: maximum number of connections a server process serves
    27  #                         before terminating
    28  <IfModule mpm_prefork_module>
    29      StartServers             5
    30      MinSpareServers          5
    31      MaxSpareServers         10
    32      MaxRequestWorkers      250
    33      MaxConnectionsPerChild   0
    34  </IfModule>
    35  
    36  # worker MPM
    37  # StartServers: initial number of server processes to start
    38  # MinSpareThreads: minimum number of worker threads which are kept spare
    39  # MaxSpareThreads: maximum number of worker threads which are kept spare
    40  # ThreadsPerChild: constant number of worker threads in each server process
    41  # MaxRequestWorkers: maximum number of worker threads
    42  # MaxConnectionsPerChild: maximum number of connections a server process serves
    43  #                         before terminating
    44  <IfModule mpm_worker_module>
    45      StartServers             3
    46      MinSpareThreads         75
    47      MaxSpareThreads        250 
    48      ThreadsPerChild         25
    49      MaxRequestWorkers      400
    50      MaxConnectionsPerChild   0
    51  </IfModule>
    52  
    53  # event MPM
    54  # StartServers: initial number of server processes to start
    55  # MinSpareThreads: minimum number of worker threads which are kept spare
    56  # MaxSpareThreads: maximum number of worker threads which are kept spare
    57  # ThreadsPerChild: constant number of worker threads in each server process
    58  # MaxRequestWorkers: maximum number of worker threads
    59  # MaxConnectionsPerChild: maximum number of connections a server process serves
    60  #                         before terminating
    61  <IfModule mpm_event_module>
    62      StartServers             3
    63      MinSpareThreads         75
    64      MaxSpareThreads        250
    65      ThreadsPerChild         25
    66      MaxRequestWorkers      400
    67      MaxConnectionsPerChild   0
    68  </IfModule>
    69  
    70  # NetWare MPM
    71  # ThreadStackSize: Stack size allocated for each worker thread
    72  # StartThreads: Number of worker threads launched at server startup
    73  # MinSpareThreads: Minimum number of idle threads, to handle request spikes
    74  # MaxSpareThreads: Maximum number of idle threads
    75  # MaxThreads: Maximum number of worker threads alive at the same time
    76  # MaxConnectionsPerChild: Maximum  number of connections a thread serves. It
    77  #                         is recommended that the default value of 0 be set
    78  #                         for this directive on NetWare.  This will allow the
    79  #                         thread to continue to service requests indefinitely.
    80  <IfModule mpm_netware_module>
    81      ThreadStackSize      65536
    82      StartThreads           250
    83      MinSpareThreads         25
    84      MaxSpareThreads        250
    85      MaxThreads            1000
    86      MaxConnectionsPerChild   0
    87  </IfModule>
    88  
    89  # OS/2 MPM
    90  # StartServers: Number of server processes to maintain
    91  # MinSpareThreads: Minimum number of idle threads per process, 
    92  #                  to handle request spikes
    93  # MaxSpareThreads: Maximum number of idle threads per process
    94  # MaxConnectionsPerChild: Maximum number of connections per server process
    95  <IfModule mpm_mpmt_os2_module>
    96      StartServers             2
    97      MinSpareThreads          5
    98      MaxSpareThreads         10
    99      MaxConnectionsPerChild   0
   100  </IfModule>
   101  
   102  # WinNT MPM
   103  # ThreadsPerChild: constant number of worker threads in the server process
   104  # MaxConnectionsPerChild: maximum number of connections a server process serves
   105  <IfModule mpm_winnt_module>
   106      ThreadsPerChild        150
   107      MaxConnectionsPerChild   0
   108  </IfModule>
   109  
   110  # The maximum number of free Kbytes that every allocator is allowed
   111  # to hold without calling free(). In threaded MPMs, every thread has its own
   112  # allocator. When not set, or when set to zero, the threshold will be set to
   113  # unlimited.
   114  <IfModule !mpm_netware_module>
   115      MaxMemFree            2048
   116  </IfModule>
   117  <IfModule mpm_netware_module>
   118      MaxMemFree             100
   119  </IfModule>