Linux Apache perfork設定 進程數 響應數

來源:互聯網
上載者:User
Linux 7.5GiB 記憶體,4 個 EC2 計算單位(2 個虛擬核心,各含 2 個 EC2 計算單位),850GB 本地執行個體儲存,64 位元平台
Apache2.2 PHP5.3 mysql串連的遠端資料庫伺服器
Google Analytics即時檢測顯示基本同時500、600、700到1000多人線上
Apache perfork模式
現在設定的是
StartServers 20
MinSpareServers 20
MaxSpareServers 40
ServerLimit 10000
MaxClients 5000
MaxRequestsPerChild 3000

netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' TIME_WAIT 8496
FIN_WAIT1 28
FIN_WAIT2 393
ESTABLISHED 226
SYN_RECV 23
CLOSING 1
LAST_ACK 4
ps -ef | grep httpd | wc -l
267

top顯示了一堆httpd進程、、
問題:
perfork裡面的StartServers、MinSpareServers、MaxSpareServers、ServerLimit、MaxClients、MaxRequestsPerChild都啥意思啊、哪控制同時響應數啊、進程數、子進程數,top顯示的每一條httpd算一個進程還是子進程?、perfork設定的有啥問題沒、、Apache設定還需要注意啥呢

回複內容:

Linux 7.5GiB 記憶體,4 個 EC2 計算單位(2 個虛擬核心,各含 2 個 EC2 計算單位),850GB 本地執行個體儲存,64 位元平台
Apache2.2 PHP5.3 mysql串連的遠端資料庫伺服器
Google Analytics即時檢測顯示基本同時500、600、700到1000多人線上
Apache perfork模式
現在設定的是
StartServers 20
MinSpareServers 20
MaxSpareServers 40
ServerLimit 10000
MaxClients 5000
MaxRequestsPerChild 3000

netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' TIME_WAIT 8496
FIN_WAIT1 28
FIN_WAIT2 393
ESTABLISHED 226
SYN_RECV 23
CLOSING 1
LAST_ACK 4
ps -ef | grep httpd | wc -l
267

top顯示了一堆httpd進程、、
問題:
perfork裡面的StartServers、MinSpareServers、MaxSpareServers、ServerLimit、MaxClients、MaxRequestsPerChild都啥意思啊、哪控制同時響應數啊、進程數、子進程數,top顯示的每一條httpd算一個進程還是子進程?、perfork設定的有啥問題沒、、Apache設定還需要注意啥呢

http://apache.chinahtml.com/mod/prefork.html

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.