Utilizzo CPU (\%)

Microsoft.SQLServer.2012.DBEngine.CPUUsagePercentMonitor (UnitMonitor)

Utilizzo della CPU (\%) per il motore di database 2012

Knowledge Base article:

Riepilogo

Fornisce una misura del tempo effettivamente impiegato dai processori per eseguire i thread di processo di SQL Server.

Cause

Tutte le CPU allocate sono occupate per l'elaborazione delle attività di SQL Server.

Soluzioni

Valutare i motivi per cui SQL Server utilizza una percentuale elevata della CPU utilizzando i contatori di monitoraggio delle prestazioni di SQL Server e le DMV relative alle prestazioni, ad esempio sys.dm_exec_query_stats.

Risoluzione dei problemi relativi alle prestazioni in SQL Server 2008

http://technet.microsoft.com/it-it/library/dd672789(v=sql.100).aspx

Creare una sessione Eventi estesi

http://technet.microsoft.com/it-it/library/hh213147.aspx

Element properties:

TargetMicrosoft.SQLServer.2012.DBEngine
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2012.DBEngine.CPUUsagePercent.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
L'utilizzo della CPU (\%) del motore di database SQL 2012 è troppo elevato
L'utilizzo della CPU dell'istanza di SQL "{0}" nel computer "{1}" è troppo elevato. Per ulteriori informazioni, vedere la scheda relativa al contesto dell'avviso.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2012.DBEngine.CPUUsagePercentMonitor" Accessibility="Public" Enabled="true" Target="SQL2012Core!Microsoft.SQLServer.2012.DBEngine" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2012.DBEngine.CPUUsagePercent.MonitorType" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2012.DBEngine.CPUUsagePercentMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SQL!Microsoft.SQLServer.ServerRole"]/InstanceName$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Normal" MonitorTypeStateID="Normal" HealthState="Success"/>
<OperationalState ID="Error" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>300</IntervalSeconds>
<TimeoutSeconds>200</TimeoutSeconds>
<Threshold>95</Threshold>
<NumSamples>6</NumSamples>
</Configuration>
</UnitMonitor>