Total Percent Processor Time

Microsoft.Linux.SLES.9.OperatingSystem.TotalPercentProcessorTime.Monitor (UnitMonitor)

SUSE Linux Enterprise Server 9 Total Percent Processor Time 监视器

Knowledge Base article:

摘要

处理器时间的总百分比(适用于所有处理器)高。系统性能可能会受到负面影响。

总处理器时间是指所有处理器运行非闲置线程花费的时间。每个处理器都有在没有其他线程准备运行时消耗周期的空闲线程。此指标是处理器活动的主要指示器,显示观察到的忙时间的平均百分比。

此监视器阈值是按照轮询过程中返回给代理的平均值分析的,其中“样本数”参数控制平均值计算中所包含的样本数。代理返回的值是按 1 分钟间隔查询的最近 5 个值的移动平均值。

配置

默认配置

参数

默认值

阈值

95

间隔(秒)

300

样本数

3

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

原因

不正常状态表示处理器使用率当前高。这可能是由于某一应用程序占用过多的处理器资源所造成。

解决方法

要解决处理器时间长的情况,请选择以下一个或多个选项:

Element properties:

TargetMicrosoft.Linux.SLES.9.OperatingSystem
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\_Total 性能计数器的阈值。 超过了阈值的值是: {0}.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Linux.SLES.9.OperatingSystem.TotalPercentProcessorTime.Monitor" Accessibility="Public" Target="Microsoft.Linux.SLES.9.OperatingSystem" TypeID="Unix!Microsoft.Unix.WSMan.Performance.Filtered.Average.Threshold.MonitorType" Enabled="true" ParentMonitorID="SystemHealth!System.Health.PerformanceState">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Linux.SLES.9.OperatingSystem.TotalPercentProcessorTime.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>_Total</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>