MSSQL 2016: 索引使用的内存(MB)

Microsoft.SQLServer.2016.CollectionRule.DBFileGroupFx.IndexesUsedMemoryMB (Rule)

收集给定 SQL Server 2016 数据库中为内存已优化表格定义的索引分配的内存量。

Knowledge Base article:

摘要

规则将收集给定 SQL Server 2016 数据库中为内存已优化表格定义的索引分配的内存量。

可替代参数

名称

说明

默认值

已启用

启用或禁用工作流。

间隔(秒)

要运行工作流的重复时间间隔(秒)。

900

脚本延迟(毫秒)

此参数将设置工作流执行的连续 T-SQL 查询之间的延迟时间。此参数有助于在有大量目标对象时减少工作流生成的足迹。在更改此参数之前,请咨询 Microsoft 技术支持人员。

0

同步时间

使用 24 小时格式指定的同步时间。可以忽略。

00:09

超时(秒)

指定允许工作流在被关闭并标记为失败之前运行的时间。

300

Element properties:

TargetMicrosoft.SQLServer.2016.DBFileGroupFx
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2016.DataSource.DBFileGroupFx.TablesMemory Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.2016.CollectionRule.DBFileGroupFx.IndexesUsedMemoryMB" Target="SQL2016Core!Microsoft.SQLServer.2016.DBFileGroupFx" Enabled="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2016.DataSource.DBFileGroupFx.TablesMemory">
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<ServerName>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ServerName>
<SqlInstanceName>$Target/Host/Host/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.ServerRole"]/InstanceName$</SqlInstanceName>
<ObjectName>Memory-Optimized Filegroup</ObjectName>
<CounterName>Memory Used By Indexes (MB)</CounterName>
<InstanceName/>
<DatabaseName>$Target/Host/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.Database"]/DatabaseName$</DatabaseName>
<GroupID>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBFileGroupFx"]/GroupID$</GroupID>
<Value>$Data/Property[@Name='IndexesUsedMemoryMB']$</Value>
<TimeoutSeconds>300</TimeoutSeconds>
<ScriptDelayMsec>0</ScriptDelayMsec>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>