SSRS 实例占用的内存

Microsoft.SQLServer.2014.ReportingServices.UnitMonitor.Instance.MemoryUsageByInstance (UnitMonitor)

如果 SSRS 进程的内存使用率接近 WorkingSetMaximum 设置定义的限制,监视器将发出警报。

Knowledge Base article:

摘要

如果 SSRS 进程的内存使用率接近 WorkingSetMaximum 设置定义的限制,监视器将发出警报。

原因

Reporting Services 可以因多种原因占用大量内存,这些原因包括:

解决方法

The following article provides information about memory configuration for the reporting services -

在 Reporting Services 中配置服务器属性: Configure Server Properties

可替代参数

名称

说明

默认值

已启用

Enables or disables the workflow

1

生成警报

Defines whether the workflow generates an Alert

间隔(秒)

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

900

警告阈值

如果观察值介于警告阈值和严重阈值之间,监视器会将其状态更改为警告。

80

同步时间

The synchronization time specified by using a 24-hour format. May be omitted.

 

严重阈值

如果观察值超过严重阈值,监视器会将其状态更改为严重。

90

Element properties:

TargetMicrosoft.SQLServer.2014.ReportingServices.Instance
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2014.ReportingServices.MonitorType.Instance.MemoryUsageByInstance
RemotableTrue
AccessibilityPublic
Alert Message
SSRS 2014: 内存使用率接近限制
SSRS 使用的内存({3} GB)已超过阈值。
WorkingSetMaximum: {2} GB
WorkingSetMinimum: {1} GB。
服务器上的总内存: {0} GB
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2014.ReportingServices.UnitMonitor.Instance.MemoryUsageByInstance" Accessibility="Public" Enabled="true" Target="SQLRS!Microsoft.SQLServer.2014.ReportingServices.Instance" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2014.ReportingServices.MonitorType.Instance.MemoryUsageByInstance" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2014.ReportingServices.UnitMonitor.Instance.MemoryUsageByInstance.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='TotalPhysicalMemoryGB']$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name='WorkingSetMinimumGB']$</AlertParameter2>
<AlertParameter3>$Data/Context/Property[@Name='WorkingSetMaximumGB']$</AlertParameter3>
<AlertParameter4>$Data/Context/Property[@Name='MemoryUsageGB']$</AlertParameter4>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Error" MonitorTypeStateID="Above" HealthState="Error"/>
<OperationalState ID="Warning" MonitorTypeStateID="Between" HealthState="Warning"/>
<OperationalState ID="Success" MonitorTypeStateID="Below" HealthState="Success"/>
</OperationalStates>
<Configuration>
<LowerThreshold>80</LowerThreshold>
<UpperThreshold>90</UpperThreshold>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
</Configuration>
</UnitMonitor>