1,查看内存使用:free -m
$ free -m total used free shared buffers cached Mem: 1504 1491 13 0 91 764 -/+ buffers/cache: 635 869 Swap: 2047 6 2041 $
注意,由于linux会占用闲置内存当作cache,所以实际空闲量不是13,而是869
2, 实时监听log: tail -f
tail -300f abc.log
1,查看内存使用:free -m
$ free -m total used free shared buffers cached Mem: 1504 1491 13 0 91 764 -/+ buffers/cache: 635 869 Swap: 2047 6 2041 $
注意,由于linux会占用闲置内存当作cache,所以实际空闲量不是13,而是869
2, 实时监听log: tail -f
tail -300f abc.log