Apache HTTP 服务器繁忙辅助进程百分比

Microsoft.ApacheHTTPServer.ManagedServer.Unix.PctBusyWorkers.Monitor (UnitMonitor)

Knowledge Base article:

摘要

当前处理传入 HTTP 请求的 Apache 进程的百分比较高。Apache HTTP 性能可能会受到负面影响,传入 HTTP 请求可能必须等待当前请求完成才能进行处理。

原因

不正常状态表示繁忙辅助进程的百分比当前较高。这可能是由于 Apache HTTP 服务器上进行的 HTTP 请求过多所引起的。

解决方法

Apache 辅助进程处理传入 HTTP 请求。当前处理 HTTP 请求的辅助进程被视为“繁忙”,而等待的辅助进程被视为“空闲”。Apache 进程会继续使进程分叉或终止,直至它们满足为后续指令设置的要求。考虑使用以下设置调整进程配置:

配置

默认配置

参数

默认值

阈值

80

样本数

3

替代可用于更改以上为所有实例或为特定实例或组定义的参数值。

Element properties:

TargetMicrosoft.ApacheHTTPServer.ManagedServer.Unix
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Oss.WSMan.Performance.Average.Filtered.Threshold.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Apache HTTP 服务器繁忙辅助进程百分比
Apache HTTP 服务器的繁忙辅助进程当前百分比 ({0}\%) 较高
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.ApacheHTTPServer.ManagedServer.Unix.PctBusyWorkers.Monitor" Accessibility="Public" Target="Microsoft.ApacheHTTPServer.ManagedServer.Unix" TypeID="Oss!Microsoft.Oss.WSMan.Performance.Average.Filtered.Threshold.MonitorType" ParentMonitorID="Health!System.Health.PerformanceState" Enabled="onStandardMonitoring">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.ApacheHTTPServer.ManagedServer.Unix.PctBusyWorkers.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="UnderThreshold" ID="UnderThreshold"/>
<OperationalState HealthState="Error" MonitorTypeStateID="OverThreshold" ID="OverThreshold"/>
</OperationalStates>
<Configuration>
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/Apache_HTTPDServerStatistics?__cimnamespace=root/apache</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>300</Interval>
<ObjectName>Apache Server</ObjectName>
<CounterName>Percent Busy Workers</CounterName>
<InstanceName>$Target/Property[Type="Microsoft.ApacheHTTPServer.Installation"]/ConfFile$</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='Apache_HTTPDServerStatistics']/*[local-name(.)='ConfigurationFile']</InstanceProperty>
<Value>$Data/WsManData/*[local-name(.)='Apache_HTTPDServerStatistics']/*[local-name(.)='PctBusyWorkers']$</Value>
<Threshold>80</Threshold>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>