此監視器會觀察伺服器上非 Analysis Services 程序的記憶體使用量,以確保能一直提供 Analysis Services 的 TotalMemoryLimit。
裝載 SSAS 執行個體之伺服器的記憶體使用量,可能會影響伺服器的健全狀況和效能,原因是 SSAS 執行個體會和也必須進行配置的執行個體,競爭共用資源。這可能會導致電腦上可用的實體記憶體耗盡,而強制作業系統將虛擬記憶體對應至磁碟上的分頁檔,其重要順序低於實體記憶體。對於相依於 SSAS 執行個體的任何業務關鍵應用程式,應將伺服器設定為其他程序 (例如,防毒、磁碟重組、其他 SSAS 執行個體或 SQL Server 關聯式資料庫引擎) 不會配置過多的記憶體,而導致此情況。
與 SSAS 執行個體競爭大量記憶體的最常見程序,主要包括其他 SSAS 執行個體、SQL Server 關聯式資料庫引擎執行個體,或其他資料庫伺服器執行個體,因為這些項目會導致最密集地取用同時裝載 SSAS 之伺服器上所裝載的記憶體。當然有時非資料庫軟體也可能會消耗大量的記憶體。因此,記憶體考量可能會頻繁地影響伺服器的組態。
工作管理員可用以檢查伺服器上各種程序的記憶體使用量。在 Window Server 2008 R2 的 [處理程序] 索引標籤上,以及 Windows Server 2014 中的 [詳細資料] 索引標籤上,使用者可依 [記憶體] 欄位排序,輕鬆地查看以找到耗用系統上最多記憶體的程序。如果 SSAS (msmdsrv.exe) 或 SQL Server 關聯式資料庫引擎 (sqlservr.exe) 執行個體耗用過多記憶體,則這是一種快速找出其使用量的簡單方法,當然,也可能確認系統上的其他程序是否可能會造成此狀況。因此,可以據此設計出更正動作 (例如由 SQL 管理員調整執行個體的記憶體使用量、新增硬體,或減少/劃分電腦上的工作負載)。
解決伺服器使用量總計的問題,需要管理員了解且考慮數項因素,包括但不限於工作量需求、使用者和工作排程、伺服器電腦上其他排定的程序,以及可用的資源。補救伺服器電腦上過多的記憶體配置總計的動作,可能包括下列任何動作:
加大伺服器電腦上的可用實體記憶體。
參考《SSAS 多維度效能指南》後修改設計以減少 SSAS 執行個體或關聯式資料庫執行個體的消耗量,或連絡 Microsoft 支援服務。
透過針對程序特有的方法或終止伺服器上非必要的程序,減少其他程序的消耗量。
排定受影響之執行個體上的工作或報告,以避免會導致過度配置伺服器記憶體的同時進行之工作量。
調整為警示設定的臨界值,以避免此狀況。
如果記憶體使用量對伺服器而言不是問題,請完全停用此監視器。
Analysis Services 記憶體屬性的 TechNet 文件
名稱 | 描述 | 預設值 |
重大臨界值 (%) | 如果可用的非保留數量 (%) 低於臨界值,則 [健全狀況狀態] 會變更為 [重大]。 | 5 |
已啟用 | 啟用或停用工作流程 | True |
產生警示 | 定義工作流程是否產生警示 | True |
間隔秒數 | 執行工作流程的週期性時間間隔 (秒)。 | 900 |
同步處理時間 | 使用 24 小時制指定的同步處理時間。將會忽略。 | 4 |
警告臨界值 (%) | 如果可用的非保留數量 (%) 低於臨界值,但仍高於 [重大臨界值 (%)],則 [健全狀況狀態] 會變更為 [警告]。 |
|
Target | Microsoft.SQLServer.2014.AnalysisServices.Instance | ||
Parent Monitor | System.Health.PerformanceState | ||
Category | PerformanceHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.SQLServer.2014.AnalysisServices.MonitorType.Instance.MemoryUsageByOtherProcessPercent | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.SQLServer.2014.AnalysisServices.UnitMonitor.Instance.MemoryUsageByOtherProcess" Accessibility="Public" Enabled="true" Target="SQLAS!Microsoft.SQLServer.2014.AnalysisServices.Instance" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2014.AnalysisServices.MonitorType.Instance.MemoryUsageByOtherProcessPercent" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2014.AnalysisServices.UnitMonitor.Instance.MemoryUsageByOtherProcess.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="Below" HealthState="Error"/>
<OperationalState ID="Warning" MonitorTypeStateID="Between" HealthState="Warning"/>
<OperationalState ID="Success" MonitorTypeStateID="Above" HealthState="Success"/>
</OperationalStates>
<Configuration>
<WarningThreshold>10</WarningThreshold>
<CriticalThreshold>5</CriticalThreshold>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
</Configuration>
</UnitMonitor>