為 SSAS 執行個體所設定的 TotalMemoryLimit 超出設定的臨界值 (作業系統執行必要基本功能所需實體記憶體的風險配置) (至少 2 GB) 時,此監視器會發出警示。
為 SSAS 執行個體所設定的 TotalMemoryLimit 超出設定的臨界值 (作業系統執行必要基本功能所需實體記憶體的風險配置) 時,此監視器會發出警示。此外,組態不會考慮非特定受監視執行個體之程序的潛在記憶體消耗,但管理員在完整檢閱 SSAS 多維度效能指南之後,於調整 TotalMemoryLimit 設定時,也必須予以考慮。
TotalMemoryLimit 必須至少要有足以供作業系統執行記憶體管理以及驅動程式和硬體互動的基本必要功能之空間。如果 OS 的可用記憶體不足以執行這些基本功能,則系統會不穩定或失敗。因此,有時必須將此設定設定為低於 100%,以確保這些功能有足夠的可用實體記憶體。如果設定的太高,則此監視器將會發出警示,警告發生此狀況。
TotalMemoryLimit 的預設 SSAS 組態為 80,代表伺服器上有 80% 的可用實體記憶體。如果出現其他大量的記憶體消耗 (例如,SQL Server 關聯式資料庫引擎),則應該考慮此值,並相對應地減少記憶體限制設定。如果數字升得太高,則 OS 的實體記憶體可能會不足,並產生大量的磁碟分頁,進而導致伺服器的效能不佳。
如果需要特定的位元組數,則所有大於 100 的值都會解譯為實體記憶體的位元組數。
附註: SSAS 引擎 TotalMemoryLimit 與支援固定記憶體上限的 SQL Server 關聯式資料庫引擎,其運作的方式略有不同。TotalMemoryLimit 是伺服器開始積極嘗試盡快清除記憶體的限制。同樣地,LowMemoryLimit 是伺服器開始嘗試「延遲」清除 SSAS 快取中記憶體的限制,嘗試減少對任何現有工作階段或進行中查詢的影響。達到 TotalMemoryLimit 時,可能會影響伺服器效能,因為伺服器會非常積極地清除快取中的記憶體。伺服器也支援 HardMemoryLimit 設定: 伺服器將開始任意終止工作階段以嘗試釋放記憶體的時機。這可能會導致部分使用者失敗,而且這是未將 TotalMemoryLimit 強制為固定限制的原因,因為部分查詢或工作依其本質就是需要大量的記憶體,因此 OLAP 引擎會在設定支援的限制內盡力提供記憶體。
此狀況可透過下列任一動作解決:
讓 TotalMemoryLimit 低於設定的臨界值。
新增伺服器的實體記憶體,以減少利用可用實體記憶體總計百分比所表示 (低於臨界值) (GB) 的 TotalMemoryLimit 設定。
降低設定的臨界值,以避免此警示。
如果記憶體使用量對伺服器而言不是問題,請完全停用此監視器。
Analysis Services 記憶體屬性的 TechNet 文件
名稱 | 描述 | 預設值 |
已啟用 | 啟用或停用工作流程 | True |
產生警示 | 定義工作流程是否產生警示 | True |
間隔秒數 | 執行工作流程的週期性時間間隔 (秒)。 | 604800 |
同步處理時間 | 使用 24 小時制指定的同步處理時間。將會忽略。 |
|
警告臨界值 (GB) | 為 SSAS 執行個體所設定的 TotalMemoryLimit 超出設定的臨界值 (作業系統執行必要基本功能所需實體記憶體的風險配置) (至少 2 GB) 時,此監視器會發出警示。 | 2 |
Target | Microsoft.SQLServer.2008.AnalysisServices.Instance | ||
Parent Monitor | System.Health.ConfigurationState | ||
Category | ConfigurationHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.SQLServer.2008.AnalysisServices.MonitorType.Instance.TotalMemoryConfiguration | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.SQLServer.2008.AnalysisServices.UnitMonitor.Instance.TotalMemoryConfiguration" Accessibility="Public" Enabled="true" Target="SQLAS!Microsoft.SQLServer.2008.AnalysisServices.Instance" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2008.AnalysisServices.MonitorType.Instance.TotalMemoryConfiguration" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2008.AnalysisServices.UnitMonitor.Instance.TotalMemoryConfiguration.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</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="Warning" MonitorTypeStateID="NotConfigured" HealthState="Warning"/>
<OperationalState ID="Success" MonitorTypeStateID="Configured" HealthState="Success"/>
</OperationalStates>
<Configuration>
<Threshold>2</Threshold>
<IntervalSeconds>604800</IntervalSeconds>
<SyncTime/>
</Configuration>
</UnitMonitor>