Apache 在 WHM/Cpanel Apache 配置中不尊重 MinSpareServer 和 MinSpareServer
我在帶有 WHM 控制面板的 centos 伺服器上使用 Apache 2.4 和事件 MPM。
我已將 WHM Apache 配置的全域配置設置
MinSpareServers
為 50 和MaxSparServers
55。然而,在 Apache 狀態下,我只看到 10-15 個 Apache 程序。
因此,我的大多數 apache 插槽都顯示為空/點“。” 在記分卡中。
這是我的 apache 記分卡:
RR_R__R__RR__RRR______RW__R_____RR_R_____R______RRWRWRR__RRR_R RRRRRRR_R_R…………………………………………. ……………………………….R___RR__R__________R__R…….. …RRR___RW_________________………………………………………… ………………………………………………………… …………………………………………….. ….R_R_RR_ __________R__R_R………….RRRRRR_RRRWRWRRRRRRRRRR RR………… ……………………………………………………………………………………………………………………………………………………………………………… …………………………………………….. ………………………………………………………………………………………………………………………………………… …………………………………………….. …RRRRW_RRRRRRWRRRRRRRRRRRRR…….. ……..RRRRRRRRRRRRWRRRRRRRRR_WRWRRRWRRRRR_RWRRRRRR RRRRRRR……. ……RRRRRRWR_RRRRRRRRRRR_RRR………………………………………………. ……………………………………………… ………………….RRRRRRRRRR RR_WWRRWRRRRRRR…… ………_RR_RRRR_RRRRRR_RR_RRR_R R__RRRRRRRRRR_R_RRRRRR__RR…………. …………………………………………….. …………………………………………….. ……………………………………………………………………………………………………………………………………………………………….. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ………………………………………………………. ……..
注意:如果我設置
StartServer
為 50 並重新啟動伺服器,則會啟動 50 個程序,但有些東西會殺死並將計數恢復到 10-15。我錯過了什麼嗎?執行的 apache 程序數不應該介於 MaxSpareServers 和 MinSpareServers 定義的值之間嗎?
據我所知,
MinSpareServers
andMaxSpareServers
指令僅在prefork MPM的上下文中相關。對於事件MPM, 您應該查看
MaxRequestWorkers
和 。MaxSpareThreads``MinSpareThreads