Apache HTTP 服务器已用内存 (KB)

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

如果 Apache HTTPD 服务器进程使用的内存总计 (KB) 超过阈值,则此监视器生成警报。

Knowledge Base article:

摘要

Apache HTTP 服务器进程使用的内存总计较高。系统性能可能会受到负面影响。

已用内存总计是所有 Apache HTTP 服务器进程使用的物理内存的总和。此指标是 Apache HTTP 服务器内存消耗的主要指示器。

此监视器阈值是按照轮询过程中返回给代理的平均值分析的,其中“样本数”参数控制平均值计算中所包含的样本数。

解决方法

要解决 Apache HTTP 服务器内存使用率较高的情况,请选择以下一个或多个选项:

配置

默认配置

参数

默认值

警告阈值

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 服务器已用内存总计 (KB)
Apache HTTP 服务器进程使用的内存 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>