Red Hat Enterprise Linux Server 5 Operating System Available MegaBytes Swap Space 모니터
이 모니터는 사용 가능한 스왑 공간의 크기를 확인합니다. 이 모니터에서 경고가 수신되면 시스템을 작동 상태로 되돌리기 위한 조치가 필요할 수 있습니다.
비정상 상태는 현재 스왑 공간 사용률이 높음을 나타냅니다. 이 문제는 다음 상황으로 인해 발생할 수 있습니다.
실제 메모리 리소스를 과도하게 사용하는 프로세스
임시 파일 시스템에 쓰기
컴퓨터에서 너무 많은 응용 프로그램을 동시에 실행 중인 경우
시간이 지남에 따라 응용 프로그램의 메모리가 누수되는 경우
하나 이상의 응용 프로그램, 데몬 또는 프로세스를 닫거나 중지합니다. "top" 명령을 실행하거나 상태 보기에서 "상위 10 CPU 프로세스" 작업을 실행합니다. 그러면 CPU 사용량을 기준으로 정렬된 프로세스 목록이 제공됩니다. 이 목록에는 기본적으로 CPU를 가장 많이 사용하는 프로세스와 해당 PID(프로세스 ID)만 표시됩니다. "top" 명령의 출력을 통해 잘못되거나 불필요한 프로세스를 해당 PID 번호와 함께 확인합니다. 프로세스의 PID를 사용하여 "kill" 명령을 실행합니다. 예를 들어 프로세스의 PID 번호가 4510이면 'kill 4510' 명령을 실행합니다.
추가 스왑 공간을 추가합니다. mkfile을 사용하여 논리 스왑 영역에 대한 파일을 만드십시오. 1GB 스왑 파일을 만들려면 다음을 수행합니다. dd if=/dev/zero of=/swapfile bs=1k count=1048576. 스왑 파일을 만드는 mkswap /swapfile 명령을 실행합니다. 스왑 파일을 활성화하는 swapon /swapfile 명령을 실행합니다. 사용 가능한 모든 스왑 공간을 보려면 'free' 명령을 실행해야 합니다.
컴퓨터에 실제 메모리를 추가합니다.
상태 보기에서 "메모리 정보" 작업을 실행하여 사용 가능한 메모리를 볼 수 있습니다.
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.AvailableMBytesSwap.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.AvailableMBytesSwap.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>Swap Space</ObjectName>
<CounterName>Available MBytes</CounterName>
<InstanceName/>
<Value>$Data///*[local-name()="AvailableSwap"]$</Value>
<Threshold>2.5</Threshold>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>