[root@localhost mysql]# free -m
total used free shared buffers cached
Mem: 1853 1585 267 0 50 1374
-/+ buffers/cache: 160 1692
Swap: 3967 0 3967
[root@localhost mysql]# echo 1 > /proc/sys/vm/drop_caches
[root@localhost mysql]# free -m
total used free shared buffers cached
Mem: 1853 119 1733 0 0 6
-/+ buffers/cache: 112 1740
Swap: 3967 0 3967
查看内存条数的命令:
[root@localhost mysql]# dmidecode | grep -A16 “Memory Device$”
———————————–
©著作权归作者所有:来自51CTO博客作者zz911的原创作品,请联系作者获取转载授权,否则将追究法律责任
linux 内存释放 清理命令 — 关闭MySQL后依然占用着大量内存
https://blog.51cto.com/u_12223582/1875653