Are there any tools that can be used to check memory utilization?

219 篇文章 2 订阅

https://access.redhat.com/solutions/39355

Are there any tools that can be used to check memory utilization?

 SOLUTION 已验证 - 已更新 2014年三月29日02:01 - 

English 

环境

  • Red Hat Enterprise Linux 4
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

问题

  • System is facing high memory utilization, what are the tools that can be used to view it?

决议

Following commands can be used to see the memory utilization:

  • Report usage of each prosess's VIRT (virtual memory size) and RSS (resident set size.)

    Raw

    # ps aux
    
  • Report short summary of memory utilization statistics.

    Raw

    # free
    
  • Report details of memory utilization statistics.

    Raw

    # cat /proc/meminfo
    
  • Report details of slab utilization statistics.

    Raw

    # cat /proc/slabinfo
    
  • Report virtual memory statistics.

    Raw

    # vmstat
    
  • Report virtual memory statistics iteratively (the example's sampling is 5 seconds.)

    Raw

    # vmstat 5
    
  • Report memory and swap space utilization statistics iteratively (the example's sampling is 5 seconds and, count is 10.)

    Raw

    # sar -r 5 10
    

Comments

Refer man pages for more information.

Raw

*   PS(1) (\`man ps\`)
*   FREE(1) (\`man free\`)
*   PROC(5) (\`man proc\`)
*   SLABINFO(5) (\`man slabinfo\`)
*   VMSTAT(8) (\`man vmstat\`)
*   SAR(1) (\`man sar\`)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值