[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$"
linux 内存释放 清理命令 --- 关闭MySQL后依然占用着大量内存
原文地址:http://12223582.blog.51cto.com/12213582/1875653