Apache并发连接数

可以使用以下参数配置Apache的并发连接数:


  StartServers            8
  MinSpareServers         5
  MaxSpareServers        20
  MaxClients            150
  MaxRequestsPerChild  1000



  StartServers            2
  MaxClients            150
  MinSpareThreads        25
  MaxSpareThreads        75 
  ThreadsPerChild        25
  MaxRequestsPerChild     0



  ThreadsPerChild       250
  MaxRequestsPerChild     0


对于Windows系统,缺省会使用mpm_winnt,配置中有用的是第三段,即:

  ThreadsPerChild       250
  MaxRequestsPerChild     0


具体含义可参考Apache的官方文档:
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#threadsperchild

你可能感兴趣的:(Apache并发连接数)