Red Hat Enterprise Linux Server 5 オペレーティング システムの使用可能なメモリのメガバイト数モニタ
このモニタは、システムの使用可能なメガバイト数 (Memory\% Available MBytes) を確認します。このモニタからアラートを受け取った場合は、システムを動作状態に戻すために操作が必要になることがあります。.
利用可能な物理メモリの量は、次の状況で足りなくなることがあります。
コンピュータ上で同時に実行されているアプリケーションやプロセスの数が多すぎる。
長時間にわたって、アプリケーションでメモリ リークが発生している。
物理メモリの量が少なくなった場合、管理者は次の 1 つまたは複数のオプションを選択できます。
1 つまたは複数のアプリケーション、デーモン、プロセスを停止するか強制終了する。top コマンドを実行するか、[状態の表示] から [上位 10 個の CPU プロセス] タスクを実行します。これにより、CPU 使用率の順序でプロセスが一覧表示されます。既定では、CPU 消費の高いプロセスと、それらに対応する PID (Process ID) だけがこの一覧に表示されます。top コマンドの出力を使用して、不適切なプロセスや不要なプロセス、およびそれらの PID 番号を識別します。プロセスの PID を使用して、kill コマンドを実行します。たとえば、プロセスの PID 番号が 4510 である場合は、kill 4510 コマンドを実行します。[状態の表示] から [メモリ情報] タスクを実行して、使用可能なメモリが増加したことを確認できます。
コンピュータに物理メモリを追加する。
アプリケーションを 1 つまた複数の別のサーバーに移動する。
[状態の表示] から [メモリ情報] タスクを実行して、使用可能なメモリを表示できます。
VMStat は、最後に再起動されてからのメモリ統計の平均値を提供します。VMStat タスクは [状態の表示] から実行できます。
Target | Microsoft.Linux.RHEL.5.OperatingSystem | ||
Parent Monitor | System.Health.PerformanceState | ||
Category | PerformanceHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Unix.WSMan.Performance.Average.Threshold.MonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.Linux.RHEL.5.OperatingSystem.AvailableMBytes.Monitor" Accessibility="Public" Target="Microsoft.Linux.RHEL.5.OperatingSystem" TypeID="Unix!Microsoft.Unix.WSMan.Performance.Average.Threshold.MonitorType" Enabled="true" ParentMonitorID="SystemHealth!System.Health.PerformanceState">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Linux.RHEL.5.OperatingSystem.AvailableMBytes.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Error" MonitorTypeStateID="UnderThreshold" ID="UnderThreshold"/>
<OperationalState HealthState="Success" MonitorTypeStateID="OverThreshold" ID="OverThreshold"/>
</OperationalStates>
<Configuration>
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_MemoryStatisticalInformation?__cimnamespace=root/scx</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>300</Interval>
<ObjectName>Memory</ObjectName>
<CounterName>Available MBytes</CounterName>
<InstanceName/>
<Value>$Data///*[local-name()="AvailableMemory"]$</Value>
<Threshold>2.5</Threshold>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>