灵感的来临,没有任何预兆;灵感的消失,也不会有告别仪式;用文字记下她们吧,让灵感永存……

Apache 2.0 MPM 配置

davies 发表于 2005 年 06 月 14 日

在安装 apache 时,有一个 USE 选项是 threads,它表示对 apache 启用线程支持,能够改善性能。

这篇文章对它做了详尽的描叙:Apache 2.0性能优化—MPM的选择与配置

在 apache2 启用线程支持后,默认使用的是 worker,运行 apache2 -l 输出如下:
Compiled in modules:
  core.c
  worker.c
  http_core.c
  mod_so.c

由于我的服务器访问量并不大,MPM 参数设置如下:

<IfModule worker.c>
StartServers         2
MaxClients           50
MinSpareThreads      25
MaxSpareThreads      50
ThreadsPerChild      25
MaxRequestsPerChild  0
</IfModule>

网友留言:

Re: Apache 2.0 MPM 配置1. 发表于 2007 年 09 月 28 日 5:09 a.m.

1

我来留言