Advertisement
Guest User

Untitled

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