最終更新:2020-02-25 (火) 16:47:49 (43d)  

Apache/MPM/prefork
Top / Apache / MPM / prefork

  • Apache HTTP サーバ 1.3 系以前のモデル
  • 1 つのリクエストに対して、1 プロセスを割り当てる (メモリを使う)
  • 負荷に応じて、子プロセスを増減させる
    # prefork MPM
    # StartServers: number of server processes to start
    # MinSpareServers: minimum number of server processes which are kept spare
    # MaxSpareServers: maximum number of server processes which are kept spare
    # ServerLimit: maximum value for MaxClients for the lifetime of the server
    # MaxClients: maximum number of server processes allowed to start
    # MaxRequestsPerChild: maximum number of requests a server process serves
    <IfModule prefork.c>
    StartServers       8
    MinSpareServers    5
    MaxSpareServers   20
    ServerLimit      256
    MaxClients       256
    MaxRequestsPerChild  4000
    </IfModule>

設定項目

CentOS 7

  • Linux/etc/httpd/conf.modules.d/00-mpm.conf?