Centos 释放内存
# free -m
total used free shared buffers cached
Mem: 2509 1767 741 0 0 1063
-/+ buffers/cache: 703 1805
Swap: 478 0 478
#
把内存里的数据暂时写到硬盘里
# sync
修改 /proc/sys/vm/drop_caches文件
# echo 3 > /proc/sys/vm/drop_caches
# cat /proc/sys/vm/drop_caches
3
再看看内存情况
# 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
# free -m
total used free shared buffers cached
Mem: 2509 1767 741 0 0 1063
-/+ buffers/cache: 703 1805
Swap: 478 0 478
#
把内存里的数据暂时写到硬盘里
# sync
修改 /proc/sys/vm/drop_caches文件
# echo 3 > /proc/sys/vm/drop_caches
# cat /proc/sys/vm/drop_caches
3
再看看内存情况
# 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