SSRS 執行個體所耗用的記憶體

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

此監視器會在 SSRS 處理序的記憶體使用量接近 WorkingSetMaximum 設定所定義的限制時發出警示。

Knowledge Base article:

摘要

此監視器會在 SSRS 處理序的記憶體使用量接近 WorkingSetMaximum 設定所定義的限制時發出警示。

原因

Reporting Services 可能會因為多種不同原因而耗用大量記憶體。以下列出其中一部分原因:

解決方式

下列文章提供 Reporting Services 的記憶體組態資訊 -

設定報表伺服器應用程式的可用記憶體

在 Reporting Services 中設定伺服器屬性: 設定伺服器屬性

可覆寫的參數

名稱

描述

預設值

已啟用

啟用或停用工作流程

產生警示

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

間隔 (秒)

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

900

警告臨界值

此監視器會在觀察到的值介於警告與重大臨界值之間時變更為警告狀態。

80

同步處理時間

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

 

逾時 (秒)

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

300

重大臨界值

此監視器會在觀察到的值超出重大臨界值時變更為重大狀態。

90

Element properties:

TargetMicrosoft.SQLServer.2008.ReportingServices.Instance
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2008.ReportingServices.MonitorType.Instance.MemoryUsageByInstance
RemotableTrue
AccessibilityPublic
Alert Message
SSRS 2008: 記憶體使用量接近限制
SSRS 所使用的記憶體 ({3} GB) 已超出臨界值。
WorkingSetMaximum: {2} GB
WorkingSetMinimum: {1} GB.
伺服器上的記憶體總計: {0} GB
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2008.ReportingServices.UnitMonitor.Instance.MemoryUsageByInstance" Accessibility="Public" Enabled="true" Target="SQLRS!Microsoft.SQLServer.2008.ReportingServices.Instance" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2008.ReportingServices.MonitorType.Instance.MemoryUsageByInstance" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2008.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/>
<TimeoutSeconds>300</TimeoutSeconds>
</Configuration>
</UnitMonitor>