Apache HTTP 서버 총 CPU 백분율

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

Apache HTTP 서버 총 CPU 백분율 모니터

Knowledge Base article:

요약

Apache HTTP 서버에 대한 CPU 사용 백분율이 높습니다. 시스템 성능이 저하될 수 있습니다.

총 CPU 백분율은 사용 가능한 총 CPU 리소스와 비교하여 Apache HTTP 서버가 사용하고 있는 CPU 리소스 양입니다. Apache HTTP 서버는 수신 요청을 서비스할 때 프로세서를 사용합니다. 이 메트릭은 Apache HTTP 프로세서 활동에 대한 주요 표시기이며, 관찰된 평균 사용 중 시간의 백분율을 표시합니다.

모니터 임계값은 에이전트에 대한 폴링에 반환된 평균 값에 대해 분석됩니다. 여기서 샘플 수 매개 변수가 평균 계산에 포함된 샘플 수를 제어합니다.

원인

비정상 상태는 Apache HTTP 서버의 프로세서 사용률이 현재 높다는 것을 나타냅니다. 요청 수가 아주 많거나 웹 응용 프로그램 자체의 처리 비용이 높은 것이 원인일 수 있습니다.

해결 방법

높은 Apache HTTP 서버 CPU 사용량을 해결하려면 다음 옵션 중 하나 이상을 선택합니다.

구성

기본 구성

매개 변수

기본값

임계값

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 서버 총 CPU 백분율
Apache HTTP 서버가 사용하는 총 CPU 백분율({0}\%)이 높습니다.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.ApacheHTTPServer.ManagedServer.Unix.TotalPctCPU.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.TotalPctCPU.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>Total Percent CPU</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(.)='TotalPctCPU']$</Value>
<Threshold>80</Threshold>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>