https://access.redhat.com/solutions/39355
Are there any tools that can be used to check memory utilization?
SOLUTION 已验证 - 已更新 2014年三月29日02:01 -
环境
- 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.)
# ps aux - Report short summary of memory utilization statistics.
# free - Report details of memory utilization statistics.
# cat /proc/meminfo - Report details of slab utilization statistics.
# cat /proc/slabinfo - Report virtual memory statistics.
# vmstat - Report virtual memory statistics iteratively (the example's sampling is 5 seconds.)
# vmstat 5 - Report memory and swap space utilization statistics iteratively (the example's sampling is 5 seconds and, count is 10.)
# sar -r 5 10
Comments
Refer man pages for more information.
* PS(1) (\`man ps\`)
* FREE(1) (\`man free\`)
* PROC(5) (\`man proc\`)
* SLABINFO(5) (\`man slabinfo\`)
* VMSTAT(8) (\`man vmstat\`)
* SAR(1) (\`man sar\`)
Red Hat Linux内存使用率检查工具

本文介绍了一系列用于查看Red Hat Enterprise Linux系统内存利用率的命令行工具,包括ps、free、cat /proc/meminfo、cat /proc/slabinfo、vmstat及sar等,这些工具可以帮助用户详细了解系统的虚拟内存、物理内存、交换区使用情况,以及slab缓存的统计信息。
3371

被折叠的 条评论
为什么被折叠?



