Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Last active December 27, 2015 18:48
Show Gist options
  • Save tkuchiki/7372016 to your computer and use it in GitHub Desktop.
Save tkuchiki/7372016 to your computer and use it in GitHub Desktop.
apache の設定値の説明
<IfModule prefork.c>
StartServers 8 # 起動時の子プロセス数
MinSpareServers 5 # 待機する子プロセスの最小値
MaxSpareServers 20 # 待機する子プロセスの最大値
# 以下は同じ値
ServerLimit 256 # サーバプロセスの最大値
MaxClients 256 # 子プロセスの最大値
MaxRequestsPerChild 4000 # 子プロセスが扱えるリクエストの最大値
</IfModule>
<IfModule worker.c>
StartServers 4 # 起動時のプロセス数
MaxClients 300 # 全プロセス・全スレッドで受け付けられる最大リクエスト数
MinSpareThreads 25 # 待機スレッドの最小値
MaxSpareThreads 75 # 待機スレッドの最大値
ThreadsPerChild 25 # 子プロセスでのスレッド数
MaxRequestsPerChild 0 # 子プロセスが扱う最大リクエスト数
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment