1、查看当前内存剩余 
   free -h 
2、首先写缓存到文件系统
   sync
3、释放页面缓存
  echo 1 > /proc/sys/vm/drop_caches
3、释放目录缓存和索引节点缓存
  echo 2 > /proc/sys/vm/drop_caches
3、释放页面缓存,目录缓存和索引节点缓存
  echo 3 > /proc/sys/vm/drop_caches

 

相关文章:

  • 2022-12-23
  • 2021-05-21
  • 2021-10-16
  • 2022-12-23
  • 2021-05-23
  • 2022-02-16
  • 2022-01-07
  • 2021-05-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-12-28
  • 2021-07-03
  • 2021-12-15
相关资源
相似解决方案