linux 内存释放 清理命令 --- 关闭MySQL后依然占用着大量内存

时间:2016-11-23 10:16:46   收藏:0   阅读:1920


[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$"



原文:http://12223582.blog.51cto.com/12213582/1875653

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!