Memory Usage

Custom.WMS.9.Role.MemoryUsage.Monitor (UnitMonitor)


This monitor tracks Windows Media Services server’s system memory usage as percentage of the system's physical memory.
Counters: Total Physical Memory
Process\Private Bytes\WMServer

Knowledge Base article:

Summary

This monitor tracks Windows Media Services server’s system memory usage.

Performance Counter: Process\Private Bytes\WMServer

Configuration

Use overrides to adjust this monitor’s threshold values according to your set up:

Broadcast scenario:

Warning: 70% of system’s memory

On-Demand:

Warning: 50% of system’s memory

Resolutions

Check Process’ memory usage. If found constantly too high, consider upgrading your hardware or adding additional servers to your infrastructure.

External

Whitepaper: Optimizing Windows Media Services

Element properties:

TargetCustom.WMS.9.Role
Parent MonitorSystem.Health.PerformanceState
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeCustom.WMS.9.Role.PercMemoryUsed.ConsecutiveSamplesThreshold
RemotableTrue
AccessibilityPublic
Alert Message
Windows Media Services server doesn't have enough free memory
Windows Media Services server's process {0} doesn't have enough free memory to perform well. This might have a negative impact on its performance.
RunAsDefault

Source Code:

<UnitMonitor ID="Custom.WMS.9.Role.MemoryUsage.Monitor" Accessibility="Public" Enabled="true" Target="Custom.WMS.9.Role" ParentMonitorID="Health!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Custom.WMS.9.Role.PercMemoryUsed.ConsecutiveSamplesThreshold" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="Custom.WMS.9.Role.MemoryUsage.Monitor_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/InstanceName$</AlertParameter1>
<AlertParameter2>$Data/Context/Value$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Custom.WMS.9.Role.MemoryUsage.Under" MonitorTypeStateID="ConditionFalse" HealthState="Success"/>
<OperationalState ID="Custom.WMS.9.Role.MemoryUsage.Over" MonitorTypeStateID="ConditionTrue" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<Frequency>300</Frequency>
<Process>WMServer</Process>
<Threshold>50</Threshold>
<Direction>greaterequal</Direction>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>