如果 Apache HTTPD 服务器进程使用的内存总计 (KB) 超过阈值,则此监视器生成警报。
Apache HTTP 服务器进程使用的内存总计较高。系统性能可能会受到负面影响。
已用内存总计是所有 Apache HTTP 服务器进程使用的物理内存的总和。此指标是 Apache HTTP 服务器内存消耗的主要指示器。
此监视器阈值是按照轮询过程中返回给代理的平均值分析的,其中“样本数”参数控制平均值计算中所包含的样本数。
要解决 Apache HTTP 服务器内存使用率较高的情况,请选择以下一个或多个选项:
通过运行 lsof –p [apache-process-id] 命令识别 Apache 进程可能在使用的文件。
向计算机添加处理器或物理内存。
将应用程序移动至一个或多个附加服务器。
调查 Web 应用程序的效率
默认配置
参数 | 默认值 |
警告阈值 | 262144 |
错误阈值 | 524288 |
样本数 | 2 |
替代可用于更改以上为所有实例或为特定实例或组定义的参数值。
Target | Microsoft.ApacheHTTPServer.ManagedServer.Unix | ||
Parent Monitor | System.Health.PerformanceState | ||
Category | PerformanceHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | MatchMonitorHealth | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Oss.WSMan.Process.Performance.Average.Threshold.MonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<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>