查詢集區佇列長度

Microsoft.SQLServer.2008.AnalysisServices.UnitMonitor.Instance.QueryPoolQueueLength (UnitMonitor)

SSAS 執行個體的查詢集區佇列大小大於設定的臨界值時,此監視器會發出警示。

Knowledge Base article:

摘要

查詢集區工作佇列大小超出設定的臨界值時,此監視器會發出警示。佇列可能會指出因為等待集區中可用的執行緒而未執行一些要求,即使工作本身可能快速執行並傳回。

原因

可能有數個原因會耗盡查詢集區中的可用執行緒,包括影響集區的伺服器設定不正確;或者,使用者或執行個體上排定工作的需求異常的高。

解決方式

解決此警示需要管理員了解及考慮數個因素,包括但不限於工作量需求、使用者和工作排程、伺服器電腦上的其他排定程序,以及可用資源。查詢集區工作佇列長度超出設定的臨界值時,用以補救此狀況的動作可能包括下列任一動作:

外部資源

在 Analysis Services 中設定伺服器屬性

SSAS 多維度效能指南

可覆寫的參數

名稱

描述

預設值

已啟用

啟用或停用工作流程

True

產生警示

定義工作流程是否產生警示

True

間隔秒數

執行工作流程的週期性時間間隔 (秒)。

900

範例數

如果違反臨界值次數大於或等於 [違反數目下限],則 [健全狀況狀態] 會變更。

4

同步處理時間

使用 24 小時制指定的同步處理時間。將會忽略。

 

警告臨界值

Analysis Services 效能計數器超出臨界值時,[健全狀況狀態] 會變更。

0

Element properties:

TargetMicrosoft.SQLServer.2008.AnalysisServices.Instance
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2008.AnalysisServices.MonitorType.PerformanceCounterThreads
RemotableTrue
AccessibilityPublic
Alert Message
SSAS 2008: 已超出查詢集區工作佇列長度
電腦 {0} 上 SSAS 執行個體 {1} 的查詢集區工作佇列長度,超出設定的臨界值。
目前的查詢佇列長度: {2}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2008.AnalysisServices.UnitMonitor.Instance.QueryPoolQueueLength" Accessibility="Public" Enabled="true" Remotable="true" Priority="Normal" Target="SQLAS!Microsoft.SQLServer.2008.AnalysisServices.Instance" TypeID="Microsoft.SQLServer.2008.AnalysisServices.MonitorType.PerformanceCounterThreads" ParentMonitorID="SystemHealth!System.Health.PerformanceState" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2008.AnalysisServices.UnitMonitor.Instance.QueryPoolQueueLength.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="SQLAS!Microsoft.SQLServer.2008.AnalysisServices.ServerRole"]/InstanceName$</AlertParameter2>
<AlertParameter3>$Data/Context/Value$</AlertParameter3>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="Healthy" HealthState="Success"/>
<OperationalState ID="Warning" MonitorTypeStateID="Warning" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<PerformanceCounterName>Query pool job queue length</PerformanceCounterName>
<CounterName>Query pool job queue length</CounterName>
<Threshold>0</Threshold>
<SampleCount>4</SampleCount>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
</Configuration>
</UnitMonitor>