小编kle*_*erk的帖子

SunOS 和 Linux 上的内存使用情况

我对内存使用有一些疑问。
目前我已经nagios检查了谁free -m在 Linux 上通过命令测量使用的内存。我从http://exchange.nagios.org/directory/Plugins/Operating-Systems/Solaris/check_mem-2Epl/details添加了另一个内存使用脚本,它测量 Solaris fromvmstat和 for Linux from /proc/meminfo,这个新检查有在某些主机上,使用率提高了 20% - 30%。

./check_mem.pl -f -w 90 -c 60
CRITICAL - 34.6% (439872 kB) free!|TOTAL=1272376KB;;;; USED=832504KB;127237;508950;; FREE=439872KB;;;; CACHES=418977KB;;;;
Run Code Online (Sandbox Code Playgroud)

这是我也有的这台主机上 Solaris 主机上的新脚本的输出

    vmstat 1 2
 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr s0 -- -- --   in   sy   cs us sy id
 0 0 0 1184172 474856 54 222 0 …
Run Code Online (Sandbox Code Playgroud)

linux solaris memory

4
推荐指数
1
解决办法
8万
查看次数

标签 统计

linux ×1

memory ×1

solaris ×1