Answers
最方便的方式就是重启了。
你也可以创建一个shell script 来执行相关的内存释放,语句如下:
# Flush file system buffers by executing
sync;
# free page cache
echo 1 > /proc/sys/vm/drop_caches;
# free dentries and inodes
echo 2 > /proc/sys/vm/drop_caches
# free page cache, dentries and inodes
echo 3 > /proc/sys/vm/drop_caches
love鸡毛
answered 10 years, 6 months ago