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>