Virtual Machine Manager 最大動態記憶體監視

ProHostMaxDynamicMemoryUnitMonitor (UnitMonitor)

這是用來檢查每部虛擬機器的最大記憶體總和是否大於主機實體記憶體的單位監視

Knowledge Base article:

摘要

此監視會追蹤 Hyper-V 主機上為虛擬機器設定的最大記憶體總和,萬一設定的最大記憶體總和超過主機安裝的實體記憶體 (以使用者定義的百分比表示) 時,此監視就會產生警示。 預設閾值為 125% (警告) 和 150% (錯誤)。

原因

此主機上為虛擬機器設定的最大記憶體總和,超過預設閾值。

解決方式

要減輕這種情況,可移轉虛擬機器,或可調整指派給虛擬機器的最大記憶體。

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.PRO.V2.ManagedHost.HyperV
Parent MonitorSystem.Health.PerformanceState
CategoryCustom
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.VirtualMachineManager.PRO.MaxDynMemPerformance.ScriptBasedThresholdType
RemotableTrue
AccessibilityPublic
Alert Message
PRO 最大動態記憶體使用量
配置給此主機之虛擬機器的最大動態記憶體總和已達到警告或重大等級。
RunAsDefault

Source Code:

<UnitMonitor ID="ProHostMaxDynamicMemoryUnitMonitor" Accessibility="Public" Enabled="false" Target="Microsoft.SystemCenter.VirtualMachineManager.PRO.V2.ManagedHost.HyperV" ParentMonitorID="Health!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Microsoft.SystemCenter.VirtualMachineManager.PRO.MaxDynMemPerformance.ScriptBasedThresholdType" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="ProHostMaxDynamicMemoryUnitMonitor_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="MaxDynamicMemoryUnitMonitor_StateSuccess" MonitorTypeStateID="ConditionSuccess" HealthState="Success"/>
<OperationalState ID="MaxDynamicMemoryUnitMonitor_StateWarning" MonitorTypeStateID="ConditionWarn" HealthState="Warning"/>
<OperationalState ID="MaxDynamicMemoryUnitMonitor_StateError" MonitorTypeStateID="ConditionError" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>900</IntervalSeconds>
<VMNames>$Target/Property[Type="Microsoft.SystemCenter.VirtualMachineManager.PRO.V2.ManagedHost.HyperV"]/VMNames$</VMNames>
<WarningThreshold>125</WarningThreshold>
<ErrorThreshold>150</ErrorThreshold>
</Configuration>
</UnitMonitor>