问题,之前以为是redis占用太多内存,后来发现是操作系统有问题:
free -m
total used free shared buffers cached
Mem: 7865 6138 1726 0 326 5110
-/+ buffers/cache: 701 7163
echo 1 > /proc/sys/vm/drop_caches
free -m
total used free shared buffers cached
Mem: 7865 530 7335 0 0 19
===============================================
Linux cached过高问题,手动释放cached
To free pagecache: echo 1 > /proc/sys/vm/drop_caches
To free dentries and inodes: echo 2 > /proc/sys/vm/drop_caches
To free pagecache, dentries and inodes: echo 3 > /proc/sys/vm/drop_caches
来自:https://www.cnblogs.com/yanwei-wang/p/8133888.html
free -m
total used free shared buffers cached
Mem: 7865 6138 1726 0 326 5110
-/+ buffers/cache: 701 7163
echo 1 > /proc/sys/vm/drop_caches
free -m
total used free shared buffers cached
Mem: 7865 530 7335 0 0 19
===============================================
Linux cached过高问题,手动释放cached
To free pagecache: echo 1 > /proc/sys/vm/drop_caches
To free dentries and inodes: echo 2 > /proc/sys/vm/drop_caches
To free pagecache, dentries and inodes: echo 3 > /proc/sys/vm/drop_caches
来自:https://www.cnblogs.com/yanwei-wang/p/8133888.html
作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:http://jackxiang.com/post/10356/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
评论列表