Linux 内存清理

在 kernel 2.6.16 以上可使用:

echo 1 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches

查看内存使用情况:

free -m

related post

Leave a Reply

Your email address will not be published. Required fields are marked *