内存性能分析

2022/2/21 7:26:12

本文主要是介绍内存性能分析,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

一、free


available<20%,表示内存紧缺
[root@master ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:           1819        1010         135          10         673         646
Swap:            

二、vmstat


swap长期不为0,表示内存紧缺
[root@master ~]# vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 6  0      0 138196      0 689856    0    0   157   203 1202 1242 15  8 77  0  0


这篇关于内存性能分析的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程