内存性能分析


一、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

相关