SUSE Linux Enterprise Server 12 作業系統 Available Megabytes Swap Space 監視
交換空間的可用 MB 偏低。可能會對系統效能造成負面影響。
交換空間的可用 MB 值表示可用的交換空間,由作業系統報告。
監視閾值是針對輪詢代理程式時傳回的平均值進行分析,其中 [範例數] 參數用於控制平均計算中所含的範例數。
預設設定
參數 | 預設值 |
閾值 | 2.5 |
間隔 (秒) | 300 |
樣本數 | 3 |
您可以透過覆寫,來變更上方為所有執行個體或特定執行個體或群組而定義的參數值。
狀況不良狀態表示目前交換空間使用率過高。可能造成這種狀況的情況包括:
處理序佔用的實體記憶體資源過多。
寫入暫存檔案系統。
電腦上有太多的應用程式同時在執行。
應用程式可能在一段時間後流失記憶體。
停止或清除一個或多個應用程式或處理序。若要檢查處理序使用的資源,請使用 "top" 命令並輸入互動式命令 "m" 來查看記憶體使用率。
增加交換空間。使用 mkfile 可建立本機交換區的檔案。若要建立 1GB 的分頁檔,請執行: dd if=/dev/zero of=/swapfile bs=1k count=1048576。發出下列命令可製作分頁檔: mkswap /swapfile。發出命令可啟用分頁檔: swapon /swapfile。您可執行 'free' 命令查看所有可用的交換空間。
在電腦上新增實體記憶體。
您可以從 [狀態檢視] 執行 [記憶體資訊] 工作,以檢視可用的記憶體。
您可以從 [狀態檢視] 執行 [執行 VMStat] 工作,以檢視詳細的記憶體統計資料。
Target | Microsoft.Linux.SLES.12.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.SLES.12.OperatingSystem.AvailableMBytesSwap.Monitor" Accessibility="Public" Target="Microsoft.Linux.SLES.12.OperatingSystem" TypeID="Unix!Microsoft.Unix.WSMan.Performance.Average.Threshold.MonitorType" Enabled="true" ParentMonitorID="SystemHealth!System.Health.PerformanceState">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Linux.SLES.12.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 Swap</CounterName>
<InstanceName/>
<Value>$Data/WsManData/*[local-name(.)='SCX_MemoryStatisticalInformation']/*[local-name(.)='AvailableSwap']$</Value>
<Threshold>2.5</Threshold>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>