通用 Linux Operating System Available Megabytes Swap Space 监视器
交换空间的可用兆字节数不足。系统性能可能会受到负面影响。
交换空间的可用兆字节数值表示操作系统报告的可用交换空间。
此监视器阈值是按照轮询过程中返回给代理的平均值分析的,其中“样本数”参数控制平均值计算中所包含的样本数。
默认配置
参数 | 默认值 |
阈值 | 2.5 |
间隔(秒) | 300 |
样本数 | 3 |
替代可用于更改以上为所有实例或为特定实例或组定义的参数值。
不正常状态表示可用交换空间使用率当前为高。环境可能引起此情况:
进程占用过多的物理内存资源。
写入临时文件系统。
计算机上同时运行的应用程序太多。
应用程序可能在一段时间内泄漏内存。
停止或取消一个或多个应用程序或进程。要检查进程使用的资源,请使用“top”命令并输入交互命令“m”以查看内存使用率。
添加交换空间。使用 mkfile 为本地交换区域创建文件。要创建 1GB 的交换文件,执行: dd if=/dev/zero of=/swapfile bs=1k count=1048576。发布命令使其成为交换文件。发布命令来激活交换文件: swapon /swapfile。你可以运行“free”命令以查看所有可用交换空间。
向计算机添加物理内存。
通过从“状态”视图中运行“内存信息”任务,你可以查看可用内存。
通过从“状态”视图中运行“运行 VMStat”任务,你可以查看详细的内存统计信息。
Target | Microsoft.Linux.Universal.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.Universal.OperatingSystem.AvailableMBytesSwap.Monitor" Accessibility="Public" Target="Universal!Microsoft.Linux.Universal.OperatingSystem" TypeID="Unix!Microsoft.Unix.WSMan.Performance.Average.Threshold.MonitorType" Enabled="true" ParentMonitorID="SystemHealth!System.Health.PerformanceState">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Linux.Universal.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>