centos中释放缓存的方法
释放缓存区内存的方法
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中释放缓存的方法的更多相关文章
- Linux手动释放缓存的方法
Linux释放内存的命令:syncecho 1 > /proc/sys/vm/drop_caches drop_caches的值可以是0-3之间的数字,代表不同的含义:0:不释放(系统默认值)1 ...
- [转]centos中wget的使用方法
本文转自 http://www.cnblogs.com/chusiping/archive/2011/11/10/2243805.html 和 http://www.jb51.net/os/RedHa ...
- centOS中wget的使用方法
对于 Linux 用户来说,几乎每天都在使用它. 下面为大家介绍几个有用的 CentOS wget 小技巧,可以让你更加高效而灵活的使用CentOS wget. CentOS wget 使用技巧 $ ...
- iOS中清除缓存的方法 以及SDWebimage自带的清除缓存方法
1 SDWebimage中 (1) 计算缓存的大小 单位 : (MB) CGFloat size = [[SDImageCache sharedImageCache] getSize] / 102 ...
- 微信浏览器中清缓存的方法---- http://debugx5.qq.com/
http://debugx5.qq.com/ 点击上面网址,然后把底部的四个选项打钩,然后点清除,即可把可恶的缓存清掉!!!!!
- linux centos 中访问linux 共享文件方法
mount -t cifs -o username="administrator",password="" //192.168.1.101/cp /mnt/nt ...
- 好系统重装助手教你清理win7系统中DNS缓存
在我们使用电脑的过程中,有时候一个经常用的网页突然打不开了,遇到这种情况,清理一下DNS缓存就可以解决了.如何清理DNS缓存?小编这就给大家说一种最简单的方法. 1.组合键:win+R,输入cmd,点 ...
- centos中yum命令删除还原的补救方法介绍
前言 yum,是Yellow dog Updater Modified的简称,起初是由yellow dog这一发行版的开发者Terra Soft研发,用python写成,那时还叫做yup(yellow ...
- 在Centos中yum安装和卸载软件的使用方法(转)
在Centos中yum安装和卸载软件的使用方法 安装方法 安装一个软件时 yum -y install httpd 安装多个相类似的软件时 yum -y install httpd* 安装多个非类似软 ...
随机推荐
- ssh框架里拦截器的权限验证基本思路【转】
相关表 序号 表性质 表名 字段 字段 字段 字段 字段 1 基表 用户表 id 帐号 密码 2 基表 角色表 id 角色名 3 基表 权限表 id 权限名 请求路径 4 ...
- MySQL备份工具之mysqldump使用
MySQL备份工具之mysqldump使用说明 一.备份分类 根据能否停用数据库,将备份类型分为: 1. 冷备:数据库服务停止后备份 2. 温备:只能对数据库进行读操作,不能进行写操作 3. 热备:在 ...
- 自学python 6.
内容:id() is == 编码 解码1.好声音选秀比赛评委在打分的时候可以进行输入. 假设有10个评委.让10个评委进行打分, 要求, 分数必须大于5分, 小于10分.count = 1while ...
- java的几个奇怪语法
=============================Java 双冒号 :: 语法的含义=============================下面的代码中有双冒号,初看上去很奇怪, list. ...
- lua基于oopclass的属性节点类 和 集合类
--[[---------------------------------------------------------------------------- --@ Descrption: 属性节 ...
- C# MVC EF框架 用事务
using System.Transactions; [HttpPost] public JsonResult Update(InfoModel list) { using (TransactionS ...
- UIScrollView嵌套的完美解决方案
UIScrollView嵌套的完美解决方案 做iOS开发,不可避免的会遇到UIScrollView的嵌套问题,之前也曾遇到过,吭哧吭哧做完了,效果不理想,和产品大战好几回合,就那样了.不可避免的,又一 ...
- oracle.sql.Clob类型转换成String类型
方法一: public String ClobToString(Clob clob) throws SQLException, IOException { String reString = &quo ...
- 第25月25日 urlsession
1. private lazy var session: URLSession = { let configuration = URLSessionConfiguration.default conf ...
- git修改文件夹名字
git mv -f oldfolder newfolder git add -u newfolder (-u选项会更新已经追踪的文件和文件夹) git commit -m "changed ...