Centos7 cache/buff过高处理方法

您所在的位置:网站首页 centos7内存缓存过高 Centos7 cache/buff过高处理方法

Centos7 cache/buff过高处理方法

#Centos7 cache/buff过高处理方法| 来源: 网络整理| 查看: 265

当linux运行久点,会产生很多不必要的cache或者buff,导致占用太多的内存,其实这可以手动去释放它。 查看内存占用命令:free -mh

清理cache/buff命令:

[root@DD-Server-9F ~]# echo 1 > /proc/sys/vm/drop_caches

[root@DD-Server-9F ~]# echo 2 > /proc/sys/vm/drop_caches

[root@DD-Server-9F ~]# echo 3 > /proc/sys/vm/drop_caches 效果见下图:



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3