Centos 释放内存
[root@ AY529 ~]# free -m
total used free shared buffers cached
Mem: 2509 1767 741 0 0 1063
-/+ buffers/cache: 703 1805
Swap: 478 0 478
[root@ AY529 ~]#
把内存里的数据暂时写到硬盘里
[root@ AY529 ~]# sync
修改 /proc/sys/vm/drop_caches文件
[root@ AY529 ~]# echo 3 > /proc/sys/vm/drop_caches
[root@ AY529 ~]# cat /proc/sys/vm/drop_caches
3
再看看内存情况
[root@ AY529 ~]# free -m
total used free shared buffers cached
Mem: 2509 668 1840 0 0 89
-/+ buffers/cache: 579 1929
Swap: 478 0 478
出自于:格格衣柜 www.gegeyigui.com
Centos 释放内存
猜你喜欢
转载自nhy520.iteye.com/blog/1767208
今日推荐
周排行