Apache HTTP Server 已使用記憶體 KB

Microsoft.ApacheHTTPServer.ManagedServer.Unix.TotalUsedMemoryKB.Monitor (UnitMonitor)

這個監視會在 Apache HTTP Server 處理序所使用的記憶體 KB 加總超過閾值時,產生警示。

Knowledge Base article:

摘要

Apache HTTP Server 處理序所使用的記憶體總計過高。可能會對系統效能造成負面影響。

已使用記憶體總計是所有 Apache HTTP Server 處理序所使用的實體記憶體加總。這個標準是 Apache HTTP Server 記憶體耗用量的主要指示器。

監視閾值是針對輪詢代理程式時傳回的平均值進行分析,其中 [範例數] 參數用於控制平均計算中所含的範例數。

解決方式

若要解決 Apache HTTP Server 記憶體使用量過高的狀況,請選擇下列一個或多個選項:

設定

預設設定

參數

預設值

警告閾值

262144

錯誤閾值

524288

範例數

2

您可以使用覆寫,針對所有執行個體或特定執行個體或群組來變更上述定義的參數值。

Element properties:

TargetMicrosoft.ApacheHTTPServer.ManagedServer.Unix
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Oss.WSMan.Process.Performance.Average.Threshold.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Apache HTTP Server 已使用記憶體 KB 總計
Apache HTTP Server 處理序所使用的記憶體 KB 總計 ({0} KB) 過高
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.ApacheHTTPServer.ManagedServer.Unix.TotalUsedMemoryKB.Monitor" Accessibility="Public" Target="Microsoft.ApacheHTTPServer.ManagedServer.Unix" TypeID="Oss!Microsoft.Oss.WSMan.Process.Performance.Average.Threshold.MonitorType" ParentMonitorID="Health!System.Health.PerformanceState" Enabled="onStandardMonitoring">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.ApacheHTTPServer.ManagedServer.Unix.TotalUsedMemoryKB.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="UnderThreshold" ID="UnderThreshold"/>
<OperationalState HealthState="Warning" MonitorTypeStateID="OverWarningThreshold" ID="OverWarningThreshold"/>
<OperationalState HealthState="Error" MonitorTypeStateID="OverErrorThreshold" ID="OverErrorThreshold"/>
</OperationalStates>
<Configuration>
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<ProcessName>$Target/Property[Type="Microsoft.ApacheHTTPServer.Installation"]/ProcessName$</ProcessName>
<ArgumentsFilterExpression/>
<Interval>300</Interval>
<ObjectName>Apache HTTP Server</ObjectName>
<CounterName>Used Memory Kbytes</CounterName>
<InstanceName>$Target/Property[Type="Microsoft.ApacheHTTPServer.Installation"]/ProcessName$</InstanceName>
<PropertyName>TotalUsedMemory</PropertyName>
<WarningThreshold>262144</WarningThreshold>
<ErrorThreshold>524288</ErrorThreshold>
<NumSamples>2</NumSamples>
</Configuration>
</UnitMonitor>