httpd-mpm.conf 4.3 KB

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