乐贴网
  • 首页
  • 程序语言
  • AI时代
  • SEO优化
  • 账号分享
  • 每日神器
  • 开源软件
  • 操作系统
  • 更多
    • 数据库
    • 框架
    • 移动开发
    • 人工智能
    • 区块链

Linux 释放内存方法

Linux 13年前 1510
+-
  1. 首页
  2. Linux
  3. 正文

Linux 释放内存方法
1、先看看内存使用状况

[root@node1 ~]# free -m


2、把内存里的数据暂时写到硬盘里

[root@AY13031310195285414f ~]# sync


3、修改 /proc/sys/vm/drop_caches文件
[root@AY13031310195285414f ~]# echo 3 > /proc/sys/vm/drop_caches
[root@AY13031310195285414f ~]# cat /proc/sys/vm/drop_caches

再看内存 
[root@node1 ~]# free -m




Linuxlinuxubuntucentosunix

相关推荐

Centos 5升级 Python到2.7版本

Centos 5升级 Python到2.7版本

Linux 13年前 2295
【应用服务 App Service】App Service For Linux 中如何挂载一个共享文件夹呢? Mount Azure Storage Account File Share

【应用服务 App Service】App Service For Linux 中如何挂载一个共享文件夹呢? Mount Azure Storage Account File Share

Linux 4年前 33
centos 搭建 leanote

centos 搭建 leanote

Linux 4年前 35
linux – mount:/ dev / mapper / centos-home:无法读取超级块

linux – mount:/ dev / mapper / centos-home:无法读取超级块

Linux 6年前 2324
『学了就忘』Linux软件包管理 — 49、拓展:Linux中通过脚本安装程序

『学了就忘』Linux软件包管理 — 49、拓展:Linux中通过脚本安装程序

Linux 4年前 43
linux安装utools——你的生产力工具集

linux安装utools——你的生产力工具集

Linux 5年前 207
Linux 释放内存方法

Linux 释放内存方法

Linux 13年前 1510
c – 找不到Magick头文件

c – 找不到Magick头文件

Linux 6年前 45
我在Win10(2004) 系统上安装linux kali子系统,一直出现Failed to fetch...错误,希望得到帮助

我在Win10(2004) 系统上安装linux kali子系统,一直出现Failed to fetch...错误,希望得到帮助

Linux 5年前 990
在Rocky Linux 8.3 RC1上安装GitLab实现代码仓库同步容灾

在Rocky Linux 8.3 RC1上安装GitLab实现代码仓库同步容灾

Linux 4年前 35
c – 来自epoll_wait的事件的epoll顺序

c – 来自epoll_wait的事件的epoll顺序

Linux 6年前 38
『学了就忘』Linux用户管理 — 50、用户管理相关文件详细说明

『学了就忘』Linux用户管理 — 50、用户管理相关文件详细说明

Linux 4年前 37

Copyright © 2012 乐贴网 - All rights reserved