記憶體內成對的 OLTP 使用中檔案

Microsoft.SQLServer.2014.Monitor.DBFileGroupFx.ActivePairs (UnitMonitor)

記憶體內檔案群組中,成對的使用中檢查點檔案數目高於指定的臨界值時,此監視器會回報重大狀態,並引發警示。

Knowledge Base article:

摘要

記憶體內檔案群組中,成對的使用中檢查點檔案數目高於指定的臨界值時,此監視器會回報重大狀態,並引發警示。

配置 8,000 個 CFP 時,即無法對持續性記憶體最佳化資料表執行新的 DML 交易。只允許檢查點和合併作業使用其餘的項目。

原因

已根據內部合併原則開始合併 CFP。如需詳細資料,請參閱 這篇文章

解決方式

依下列文章所述,執行手動合併與強制記憶體回收:

可覆寫的參數

名稱

描述

預設值

已啟用

 

產生警示

 

間隔 (秒)

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

300

範例數

指出測量值在違反臨界值多少次之後,才會變更狀態。

6

指令碼延遲 (毫秒)

此參數可設定工作流程所執行的連續 T-SQL 查詢之間的延遲。這可能有助於減少工作流程在有大量目標物件時,所產生的磁碟使用量。請先取得 Microsoft 支援服務的建議,再變更此參數。

0

同步處理時間

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

 

臨界值

收集的值會與此參數相比。

7900

逾時 (秒)

指定允許工作流程在關閉且標示為失敗之前執行的時間。

180

Element properties:

TargetMicrosoft.SQLServer.2014.DBFileGroupFx
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2014.MonitorType.DBFileGroupFx.ActiveAndNonActiveFiles
RemotableTrue
AccessibilityPublic
Alert Message
MSSQL 2014: 使用中 CFP 總數接近限制
成對的使用中檢查點檔案總數已達臨界值。
伺服器: {1}
SQL Server 執行個體: {0}
資料庫: {2}
檔案群組: {3}
成對的使用中檢查點檔案: {4}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2014.Monitor.DBFileGroupFx.ActivePairs" Target="SQL2014Core!Microsoft.SQLServer.2014.DBFileGroupFx" ParentMonitorID="SystemHealth!System.Health.PerformanceState" TypeID="Microsoft.SQLServer.2014.MonitorType.DBFileGroupFx.ActiveAndNonActiveFiles" Accessibility="Public" Enabled="true" Remotable="true" Priority="Normal" ConfirmDelivery="true">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2014.Monitor.DBFileGroupFx.ActivePairs.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
<AlertParameter2>$Target/Host/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.ServerRole"]/InstanceName$</AlertParameter2>
<AlertParameter3>$Target/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.Database"]/DatabaseName$</AlertParameter3>
<AlertParameter4>$Target/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.FileGroup"]/GroupName$</AlertParameter4>
<AlertParameter5>$Data/Context/Property[@Name='ActivePairs']$</AlertParameter5>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ErrorState" MonitorTypeStateID="ErrorState" HealthState="Warning"/>
<OperationalState ID="SuccessState" MonitorTypeStateID="SuccessState" HealthState="Success"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>300</IntervalSeconds>
<SyncTime/>
<ServerName>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ServerName>
<SqlInstanceName>$Target/Host/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.ServerRole"]/InstanceName$</SqlInstanceName>
<DatabaseName>$Target/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.Database"]/DatabaseName$</DatabaseName>
<Value>$Data/Property[@Name='ActivePairs']$</Value>
<Threshold>7900</Threshold>
<TimeoutSeconds>180</TimeoutSeconds>
<ScriptDelayMsec>0</ScriptDelayMsec>
<NumSamples>6</NumSamples>
</Configuration>
</UnitMonitor>