释放缓存区内存的方法
a)清理pagecache(页面缓存)
# echo > /proc/sys/vm/drop_caches 或者 # sysctl -w vm.drop_caches= b)清理dentries(目录缓存)和inodes
# echo > /proc/sys/vm/drop_caches 或者 # sysctl -w vm.drop_caches= c)清理pagecache、dentries和inodes
# echo > /proc/sys/vm/drop_caches 或者 # sysctl -w vm.drop_caches= [root@test4_haili_dev hadoop-2.7.]# free -m
total used free shared buffers cached
Mem:
-/+ buffers/cache:
Swap:
[root@test4_haili_dev hadoop-2.7.]# cat /proc/sys/vm/drop_caches [root@test4_haili_dev hadoop-2.7.]# echo > /proc/sys/vm/drop_caches
[root@test4_haili_dev hadoop-2.7.]# free -m
total used free shared buffers cached
Mem:
-/+ buffers/cache:
Swap:
[root@test4_haili_dev hadoop-2.7.]# cat /proc/sys/vm/drop_caches [root@test4_haili_dev hadoop-2.7.]# echo > /proc/sys/vm/drop_caches
[root@test4_haili_dev hadoop-2.7.]# cat /proc/sys/vm/drop_caches [root@test4_haili_dev hadoop-2.7.]# free -m
total used free shared buffers cached
Mem:
-/+ buffers/cache:
Swap:
[root@test4_haili_dev hadoop-2.7.]# cat /proc/sys/vm/drop_caches [root@test4_haili_dev hadoop-2.7.]# echo > /proc/sys/vm/drop_caches
[root@test4_haili_dev hadoop-2.7.]# free -m
total used free shared buffers cached
Mem:
-/+ buffers/cache:
Swap:

centos中释放缓存的方法的更多相关文章

  1. Linux手动释放缓存的方法

    Linux释放内存的命令:syncecho 1 > /proc/sys/vm/drop_caches drop_caches的值可以是0-3之间的数字,代表不同的含义:0:不释放(系统默认值)1 ...

  2. [转]centos中wget的使用方法

    本文转自 http://www.cnblogs.com/chusiping/archive/2011/11/10/2243805.html 和 http://www.jb51.net/os/RedHa ...

  3. centOS中wget的使用方法

    对于 Linux 用户来说,几乎每天都在使用它. 下面为大家介绍几个有用的 CentOS wget 小技巧,可以让你更加高效而灵活的使用CentOS wget. CentOS wget 使用技巧 $ ...

  4. iOS中清除缓存的方法 以及SDWebimage自带的清除缓存方法

    1  SDWebimage中 (1)  计算缓存的大小 单位 : (MB) CGFloat size = [[SDImageCache sharedImageCache] getSize] / 102 ...

  5. 微信浏览器中清缓存的方法---- http://debugx5.qq.com/

    http://debugx5.qq.com/ 点击上面网址,然后把底部的四个选项打钩,然后点清除,即可把可恶的缓存清掉!!!!!

  6. linux centos 中访问linux 共享文件方法

    mount -t cifs -o username="administrator",password="" //192.168.1.101/cp /mnt/nt ...

  7. 好系统重装助手教你清理win7系统中DNS缓存

    在我们使用电脑的过程中,有时候一个经常用的网页突然打不开了,遇到这种情况,清理一下DNS缓存就可以解决了.如何清理DNS缓存?小编这就给大家说一种最简单的方法. 1.组合键:win+R,输入cmd,点 ...

  8. centos中yum命令删除还原的补救方法介绍

    前言 yum,是Yellow dog Updater Modified的简称,起初是由yellow dog这一发行版的开发者Terra Soft研发,用python写成,那时还叫做yup(yellow ...

  9. 在Centos中yum安装和卸载软件的使用方法(转)

    在Centos中yum安装和卸载软件的使用方法 安装方法 安装一个软件时 yum -y install httpd 安装多个相类似的软件时 yum -y install httpd* 安装多个非类似软 ...

随机推荐

  1. Shell编程(二)Bash中调用Python

  2. windows 使用 php 的exif 问题 Call to undefined function exif_imagetype()

    保证 extension=php_mbstring.dll 在 extension=php_exif.dll 之前

  3. [Android] Android 异步定时任务实现的三种方法(以SeekBar的进度自动实现为例)

    [Android] Android 定时异步任务实现的三种方法(以SeekBar的进度自动实现为例) 一.采用Handler与线程的sleep(long)方法 二.采用Handler与timer及Ti ...

  4. 自定义类使用泛型and方法使用泛型

    使用泛型的自定义类,泛型可以使用任意的数据类型,在创建对象的时候确定是什么数据类型,创建对象的时候不使用泛型,那就默认是Object类型 格式: 使用泛型的自定义类 package cn.zhuobo ...

  5. Dijkstra和Floyd算法

    #include #include #include #define Infinity 999 //最大值 #define Max_Vertex_Num 20 //顶点数最多为20 #define L ...

  6. Windows Server 2008 R2中无法使用360免费Wifi的解决方案

    为了使主机和虚拟机在同一个无线网络中,而虚拟机的系统是Windows Server 2008 R2 64位的,使用360免费wifi,始终无法开启.在网上查找解决方案,终于找到了原因:Windows ...

  7. JSViews--JQuery系的MVVM框架

    JSViews https://github.com/BorisMoore/jsviews JsViews: next-generation MVVM and MVP framework - brin ...

  8. (14)CountTriplets

    一.问题描述 给定一个数组.三个索引 i,i ~ [0, array.length) j,  j ~ [0, array.length) k, k ~ [0, array.length) 求有多少种组 ...

  9. 广度优先遍历(BFS )(转)

    宽度优先搜索(BFS, Breadth First Search)是一个针对图和树的遍历算法.发明于上世纪50年代末60年代初,最初用于解决迷宫最短路径和网络路由等问题. 对于下面的树而言,BFS方法 ...

  10. cpp for each

    第一种 自动推导类型i从arr的地址0 之后地址向下循环向I赋值 for(auto i:arr){ }//arr内的值不会变 第二种  自动推导类型i从arr的地址0 之后地址向下循环向I赋地址 fo ...