Apache 不尊重 WHM/Cpanel Apache 配置中的 MinSpareServer 和 MinSpareServer

Apache 不尊重 WHM/Cpanel Apache 配置中的 MinSpareServer 和 MinSpareServer

我在带有 WHM 控制面板的 centos 服务器上使用 Apache 2.4 和事件 MPM。

我已 在 WHM Apache 配置的全局配置中将其设置MinSpareServers为 50 和55。MaxSparServers

然而,在 Apache 状态中,我只看到 10-15 个 Apache 进程。 apapceh 状态页面的屏幕截图

导致我的大多数 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_RRRRRRWRRRRRRRRRRRRRRR.... .................RRRRRRRRRRRRWRRRRRRR_WRWRRRRRRR_RWRRRRRR RRRRRRR.........................RRRRRRRRWR_RRRRRRRRRRRR_RRR....... ................................................................ ................................................................RRRRRRRR RR_WWRRWRRRRRRR..........................._RR_RRRR_RRRRRR_RR_RRR_R R__RRRRRRRRRR_R_RR​​RRRR__RR...................................................................... ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ............................................................. ................ ................................................... ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ........................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ........

注意:如果我设置StartServer为 50 并重新启动服务器,则会启动 50 个进程,但某些程序会终止并将计数恢复到 10-15。

我是不是漏掉了什么?运行的 apache 进程数不应该介于 MaxSpareServers 和 MinSpareServers 定义的值之间吗?

答案1

据我所知,MinSpareServersMaxSpareServers指令仅在以下情况下相关:预分叉多层印刷机

为了事件多层印刷机您应该查看MaxRequestWorkersMaxSpareThreadsMinSpareThreads

相关内容