記憶體使用量

Microsoft.SQLServer.2008.AnalysisServices.UnitMonitor.Instance.MemoryUsage (UnitMonitor)

SSAS 執行個體所配置的記憶體,大於設定的 WarningThreshold (以 SSAS 執行個體之 TotalMemoryLimit 設定的百分比表示) 時,此監視器會回報警告。這些配置大於設定的 CriticalThreshold 時,此監視器會發出重大警示。

Knowledge Base article:

摘要

SSAS 執行個體所配置的記憶體,大於設定的 WarningThreshold (以 SSAS 執行個體之 TotalMemoryLimit 設定的百分比表示) 時,此監視器會回報警告。這些配置大於設定的 CriticalThreshold 時,此監視器會發出重大警示。

原因

在部分情況下,SSAS 可能會接近或超出 TotalMemoryLimit 設定。在某些情況下,單一作業就需要超過這些限制的記憶體,而且,雖然伺服器會盡力清除其他較不即時性工作的記憶體,但是配置有時仍無可避免的超出設定限制,否則,必須強制該作業失敗。

處理大型維度或事實資料時,特別是具有耗用大量空間之資料類型 (例如,長字串、二進位資料等) 的屬性時,或維度包含數個成員時,可能會發生這情況。同時,伺服器上執行的查詢可能涵蓋極大量的空間,特別是當交叉聯結多個維度,或需要非常大量的計算,以衍生出有經驗之管理員先前未彙總 (或只是無法事先進行彙總) 之儲存格的結果時。

解決方式

超出伺服器的記憶體限制時,系統管理員可以使用數種方式來補救此問題。考慮產生記憶體使用量的基礎活動、伺服器上的工作量需求、可用資源和其他因素,以及完整檢閱和考慮 SSAS 多維度效能指南,或視需要諮詢 Microsoft 支援人員之後,可以使用下列任何方式來解決此問題:

外部資源

Analysis Services 記憶體屬性的 TechNet 文件

在 Analysis Services 中設定伺服器屬性

SSAS 多維度效能指南

可覆寫的參數

名稱

描述

預設值

重大臨界值 (%)

Analysis Services 記憶體使用量 (%) 超出臨界值時,[健全狀況狀態] 會變更為 [重大]。

95

已啟用

啟用或停用工作流程

True

產生警示

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

True

間隔秒數

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

900

同步處理時間

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

 

警告臨界值 (%)

如果 Analysis Services 記憶體使用量 (%) 超出臨界值,但仍低於 [重大臨界值 (%)],則 [健全狀況狀態] 會變更為 [警告]。

80

Element properties:

TargetMicrosoft.SQLServer.2008.AnalysisServices.Instance
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2008.AnalysisServices.MonitorType.Instance.MemoryUsagePercent
RemotableTrue
AccessibilityPublic
Alert Message
SSAS 2008: 高記憶體使用量
SSAS 目前的記憶體使用量 ({3} GB) 大於設定的臨界值 (以執行個體之 TotalMemoryLimit 設定的百分比表示)。
伺服器上的記憶體總計: {2} GB
記憶體使用量總計: {5} GB
非 SSAS 程序所使用的記憶體: {4} GB
SSAS 所使用的記憶體: {3} GB
低 SSAS 記憶體限制: {6} GB ({7}\%)
高 SSAS 記憶體限制: {0} GB ({8}\%)
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2008.AnalysisServices.UnitMonitor.Instance.MemoryUsage" Accessibility="Public" Enabled="true" Target="SQLAS!Microsoft.SQLServer.2008.AnalysisServices.Instance" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2008.AnalysisServices.MonitorType.Instance.MemoryUsagePercent" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2008.AnalysisServices.UnitMonitor.Instance.MemoryUsage.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='MemoryLimitHighGB']$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name='MemoryLeavesForOsGB']$</AlertParameter2>
<AlertParameter3>$Data/Context/Property[@Name='TotalPhysicalMemoryGB']$</AlertParameter3>
<AlertParameter4>$Data/Context/Property[@Name='MemoryUsageGB']$</AlertParameter4>
<AlertParameter5>$Data/Context/Property[@Name='MemoryUsageByOtherProcessGB']$</AlertParameter5>
<AlertParameter6>$Data/Context/Property[@Name='UsedPhysicalMemoryGB']$</AlertParameter6>
<AlertParameter7>$Data/Context/Property[@Name='MemoryLimitLowGB']$</AlertParameter7>
<AlertParameter8>$Data/Context/Property[@Name='MemoryLimitLowPercent']$</AlertParameter8>
<AlertParameter9>$Data/Context/Property[@Name='MemoryLimitHighPercent']$</AlertParameter9>
</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>
<WarningThreshold>80</WarningThreshold>
<CriticalThreshold>95</CriticalThreshold>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
</Configuration>
</UnitMonitor>