Monitor memory usage with vmstat

Use vmstat if you would like to get reports information about processes, memory, paging, block IO, traps and CPU activity on your system.

Run it 10 times, every 2 seconds:

vmstat 2 10

Output:

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 1  0      0 709596  31684 143280    0    0    30     8   27   51  0  0 95  4
 0  0      0 709712  31692 143280    0    0     0    16  212  282  5  0 95  0
 0  0      0 709340  31692 143280    0    0     0     0  165  208  4  0 96  0
 0  0      0 709340  31692 143280    0    0     0     0   57  117  0  0 100  0
 0  0      0 709588  31700 143272    0    0     0     6   74  133  0  0 99  0
 1  0      0 709340  31700 143280    0    0     0     0   58  117  0  0 100  0
 0  0      0 709588  31700 143280    0    0     0     0   67  143  0  0 100  0
 0  0      0 709340  31708 143272    0    0     0    30   66  135  0  0 100  0
 2  0      0 709348  31708 143280    0    0     0     0   56  111  0  0 100  0
 0  0      0 709480  31708 143280    0    0     0     0   67  149  1  0 99  0
Categories: Linux Tags: , , ,
%d bloggers like this: