linux内存查看、清理、释放命令
2024-09-01 13:33:51
echo 1 > /proc/sys/vm/drop_caches
清理前
# free -h
total used free shared buffers cached
Mem: 19G 19G 203M 1.1G 82M 17G
-/+ buffers/cache: 1.5G 18G
Swap: 23G 159M 23G
清理后
# echo 1 > /proc/sys/vm/drop_caches
# free -h
total used free shared buffers cached
Mem: 19G 2.4G 17G 1.1G 680K 1.4G
-/+ buffers/cache: 1.1G 18G
Swap: 23G 163M 23G
查看内存条数命令:
dmidecode | grep -A16 "Memory Device$"
查看服务器内存槽数量及各内存条大小
linux
dmidecode | grep -A16 "Memory Device$"
esxi
vclient-主机-硬件状态
最新文章
- 深入学习jQuery事件绑定
- C# 导入EXCEL 报错外部表不是预期的格式错误 .
- expect结合ssh遍历线上机器
- [图文详解] Sublime Text在Windows/Ubuntu/Mac OSX中配置使用CTags
- mac 下 svn ignore 操作
- 关于启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方法!
- VS2013项目受源代码管理向源代码管理注册此项目时出错
- 安装mono和jexus,运行asp.net程序
- [Lua]Mac系统上安装Lua环境
- JAVA中的栈和堆
- Gym - 101350A Sherlock Bones(思维)
- javaScript常用API合集
- python, 在信用评级中,计算KS statistic值
- Spring Boot 揭秘与实战(三) 日志框架篇 - 如何快速集成日志系统
- 学习项目部署Django+uwsgi+Nginx生产环境部署
- [INS-20802] Oracle Net Configguration Assistant faild
- HDU 2586 How far away ?(LCA在线算法实现)
- 在LinuxMint中对firefox进行手动安装flash插件
- SQL Server中的流控制语句
- 第168天:json对象和字符串的相互转换
热门文章
- 10个Python 初学者必知编码小技巧
- cc.rectContainsPoint使用中发现的问题
- php设计模式之桥接模式实例代码
- java继承与多态课后作业
- Django教程(2)
- 根据wsdl生成soap请求格式
- AcWing 789. 数的范围 二分+模板
- 解决报错Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshaketimeout
- Systemd 学习
- 【转载】C/C++预处理器