Webサーバー

Apache2.2 prefork.c ServerLimit MaxClients

estis2010/05/29 (土) 07:37 に投稿

Apache2.2系のデフォルト

<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
</IfModule>

ServerLimit、MaxClientsのデフォルト上限値は、200000。

# httpd -t
WARNING: ServerLimit of 400000 exceeds compile time limit of 200000 servers,
 lowering ServerLimit to 200000.
WARNING: MaxClients of 400000 exceeds ServerLimit value of 200000 servers,
 lowering MaxClients to 200000.  To increase, please see the ServerLimit
 directive.