MSSQL 2014: 用户资源池内存占用(MB)

Microsoft.SQLServer.2014.CollectionRule.UserResourcePool.MemoryConsumptionMB (Rule)

收集资源池使用的内存量(MB)。

Knowledge Base article:

摘要

收集资源池使用的内存量(MB)。

与 SQL Server 相比,SQL Server 内存优化数据使用的内存更多,方式也不一样。为内存优化数据安装和分配的内存量可能无法满足日益增长的需要。如果是这样,内存可能会用尽。

可替代参数

名称

说明

默认值

已启用

启用或禁用工作流。

间隔(秒)

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

900

脚本延迟(毫秒)

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

0

同步时间

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

00:06

超时(秒)

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

300

Element properties:

TargetMicrosoft.SQLServer.2014.UserResourcePool
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2014.DataSource.PoolMemoryConsumptionPerf Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.2014.CollectionRule.UserResourcePool.MemoryConsumptionMB" Target="SQL2014Core!Microsoft.SQLServer.2014.UserResourcePool" Enabled="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2014.DataSource.PoolMemoryConsumptionPerf">
<IntervalSeconds>900</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>
<ObjectName>SQL User Resource Pool</ObjectName>
<CounterName>User Resource Pool Memory Consumption (MB)</CounterName>
<InstanceName/>
<Value>$Data/Property[@Name='PoolUsedMemoryMB']$</Value>
<PoolID>$Target/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.ResourcePool"]/PoolID$</PoolID>
<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>