Processor Percent Processor Time

Microsoft.Linux.RHEL.7.Processor.PercentProcessorTime.Monitor (UnitMonitor)

Red Hat Enterprise Linux Server 7 Processor Percent Processor Time 監視

Knowledge Base article:

摘要

處理器時間的百分比 (適用於單一處理器) 偏高。可能會對系統效能造成負面影響。

處理器時間即是單一處理器花在執行非閒置執行緒的時間。每顆處理器具有閒置執行緒,在其他執行緒尚未準備好執行時,會佔用循環。此標準是處理器活動的主要指示器,用於顯示在取樣間隔時間內所觀測到的平均忙碌時間百分比。

監視閾值是針對輪詢代理程式時傳回的平均值進行分析,其中 [範例數] 參數用於控制平均計算中所含的範例數。代理程式傳回的值是在 1 分鐘的間隔內查詢的 5 個最新值的彙總平均。

設定

預設會停用個別處理器的監視。若要啟用監視,可啟用名為 [探索 Red Hat Enterprise Linux Server 7 處理器] 的物件探索。

預設設定

參數

預設值

閾值

95

間隔時間 (秒)

300

範例數

3

您可以使用覆寫,針對所有執行個體或特定執行個體或群組來變更上述定義的參數值。

原因

狀況不良狀態表示目前處理器使用率過高。這可能是應用程式佔用過多處理器資源所造成。

解決方式

若要解決處理器時間過高的狀況,請選擇下列一個或多個選項:

Element properties:

TargetMicrosoft.Linux.RHEL.7.Processor
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Unix.WSMan.Performance.Filtered.Average.Threshold.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
CPU 使用率百分比過高
[Processor\\% Processor Time\] 效能計數器已超過閾值。以下的值已超過閾值: {0}\%.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Linux.RHEL.7.Processor.PercentProcessorTime.Monitor" Accessibility="Public" Target="Microsoft.Linux.RHEL.7.Processor" TypeID="Unix!Microsoft.Unix.WSMan.Performance.Filtered.Average.Threshold.MonitorType" Enabled="true" ParentMonitorID="SystemHealth!System.Health.PerformanceState">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Linux.RHEL.7.Processor.PercentProcessorTime.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/SCX_ProcessorStatisticalInformation?__cimnamespace=root/scx</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>300</Interval>
<ObjectName>Processor</ObjectName>
<CounterName>% Processor Time</CounterName>
<InstanceName>$Target/Property[Type="Unix!Microsoft.Unix.Processor"]/PerfmonInstance$</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='SCX_ProcessorStatisticalInformation']/*[local-name(.)='Name']</InstanceProperty>
<Value>$Data/WsManData/*[local-name(.)='SCX_ProcessorStatisticalInformation']/*[local-name(.)='PercentProcessorTime']$</Value>
<Threshold>95</Threshold>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>