譯者:Nica < nicaliu at gmail dot com >

【Nica 註:這是 httpd.conf 檔裡的設定指令!~】



Description:    Maximum number of connections that will be processed simultaneously

Syntax:    MaxClients number

Default:    See usage for details

Context:    server config

Status:    MPM

Module:    beos, prefork, worker

MaxClients 指令設定的是同時發生必須處理的 request 數量限制。任何試圖超過 MaxClients 限制數量的連線都會被置入佇列 - 視 ListenBacklog 指令設定的數量而定。對 non-threaded 伺服器而言 (例 prefork ),MaxClients 指的則為回應 request 的子程序至多數量。預設為 256,若要增加它,亦必須增加 ServerLimit



對 threaded 與 hybrid 伺服器而言 (例:beos worker ),MaxClients 限制了可回應用戶端的執行序總數,beos 的預設值是 50;hybrid MPM 的預設值則為 16 (ServerLimit ) 再乘上 25 (ThreadsPerChild )。因此,如須增加 MaxClients 的值到 16 以上,則亦必須增加 ServerLimit



原文出處:

Apache MPM Common Directives - MaxClients Directive



[20091010 補充] 指令 httpd -V (大寫V)可知曉伺服器 MPM 型態:

# httpd -V

...




Server MPM:     Prefork

threaded:     no

forked:     yes (variable process count)

Server compiled with....

-D APACHE_MPM_DIR="server/mpm/prefork"

...

arrow
arrow
    全站熱搜

    nicaliu 發表在 痞客邦 留言(0) 人氣()