1、查看系统内存占用

free -m

[root@localhost  ~]# free -mtotal       used       free     shared    buffers     cached
Mem:          2004        573       1431          0         47        201
-/+ buffers/cache:        323       1680
Swap:         1983          0       1983

2、指定时间间隔,不间断的监控内存

free -m -s 5  #每5秒显示一次

[root@localhost ~]# free -m -s 5total       used       free     shared    buffers     cached
Mem:          2004        571       1433          0         47        202
-/+ buffers/cache:        321       1683
Swap:         1983          0       1983total       used       free     shared    buffers     cached
Mem:          2004        571       1433          0         47        202
-/+ buffers/cache:        321       1683
Swap:         1983          0       1983

3、自动每隔一段时间,监控内存(和2的区别在于在同一条记录上刷新显示,2为追加显示)

watch -n 3 -d free

[root@localhost ~]# watch -n 3 -d free
Every 3.0s: free                                        Tue Oct 29 03:05:43 2019total       used       free     shared    buffers     cached
Mem:       2052988     586504    1466484          0      49184     207360
-/+ buffers/cache:     329960    1723028
Swap:      2031608          0    2031608

参考文章:

1、Linux查看内存使用情况方法汇总

2、Linux系统命令 - 查看内存使用情况_铁锚的博客-CSDN博客_查看linux内存使用情况命令

linux系统命令-查看内存使用情况相关推荐

  1. linux脚本查看系统内存,二个linux下查看内存使用情况的shell脚本()

    摘要 腾兴网为您分享:二个linux下查看内存使用情况的shell脚本(),政务易,悦作业,优化大师,王者荣耀等软件知识,以及单向历app,优路教育app,kimoji,开关电源设计软件,皮皮高清影视 ...

  2. 【linux】查看内存使用情况

    内存使用量排序显示 top命令查看 top命令能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器.使用top命令可以轻松查看各个应用的内存使用情况. # top -d 1 在t ...

  3. Linux下查看内存使用情况方法总结

    关注.星标公众号,直达精彩内容 来自:Specs'Blog 链接:http://9iphp.com/linux/1247.html 原文:http://ask.xmodulo.com/check-me ...

  4. Linux服务器查看内存使用情况

    前言 在日常开发或者生产环境,我们经常需要查看linux服务的内存使用情况,所以熟练敲出命令能便于我们快速定位问题,这里来和大家一起学习linux的常用查看内存命令. free命令 free 命令显示 ...

  5. linux下查看内存使用情况

    在Linux下查看内存我们一般用free命令: [root@scs-2 tmp]# free              total       used       free     shared   ...

  6. linux内存平均值,linux下查看内存使用情况[转载]

    在Linux下查看内存我们一般用free命令: [root@scs-2 tmp]# free total used free shared buffers cached Mem: 3266180 32 ...

  7. linux centos 查看内存使用情况

    1.ps -ef|grep java (查看所有java运行的进程) 2.df -h (查看磁盘使用情况) 3.free -m|g (m和g表示单位,二选一)查看内存使用情况 4.top (实时显示系 ...

  8. linux 查看虚拟机内存,Linux基础教程:Linux下查看内存使用情况

    /proc/meminfo 机器的内存使用信息 /proc/pid/maps pid为进程号,显示当前进程所占用的虚拟地址. /proc/pid/statm 进程所占用的内存 [root@localh ...

  9. Linux free 查看内存使用情况 常用命令

    Intro 常用命令 free free -h 以更易读(human-readable)的格式输出 free -s 3 每3秒输出一次 示例 wuyujin1997@budy:~$ free -hto ...

最新文章

  1. [转]VS2015编译的程序在其他机器上缺少msvcp120.dll
  2. 业界 | 清华发布《人工智能芯片技术白皮书(2018)》
  3. 如果修改postgresql的最大连接数
  4. Transaction And Lock--锁相关基础
  5. react 显示当前时间_react中monent如何获取日期?
  6. C#字符串格式化说明(String.Format) (zz.IS2120)
  7. 自考--网络经济与企业管理--选择易考题
  8. error: Setup script exited with error: Unable to find vcvarsall.bat
  9. .NET中的数据结构——表
  10. 课时47:魔法方法:定制序列
  11. 俄罗斯大神 lopatkin 毛子 最新 Windows 10 Pro 19041.450 20H1 Release x86-x64 ZH-CN DREY
  12. 物联管家PDA 无缝对接网店管家云端 电商erp 实现电商条码无线仓储
  13. 六安一中2021高考成绩查询,六安一中
  14. SpringBoot实现抽奖大转盘
  15. linux定时任务生效_linux ( crontab 定时任务命令)
  16. jQuery使用ajaxSubmit()提交表单以及AjaxSubmit的一些用法
  17. Laya商业级3d实战-06用户输入_u3dApi集成
  18. java反射各种属性获取
  19. FigDraw 5. SCI 文章绘图之柱状图 (Barplot)
  20. 响应式编程项目中总结

热门文章

  1. 梅科尔工作室-第五次网页前端培训(JS,JavaScript)
  2. TestNG数据驱动
  3. python获取小图在大图中的坐标和相似度
  4. A081_Lucene_ElasticSearch
  5. Linux服务器如何添加永久路由
  6. emmc linux 识别分区_Linux和Uboot下eMMC boot分区读写
  7. 遗传算法(Genetic Algorithm,GA)实现数据排序,python
  8. 敏捷实践不可忽略的环节
  9. 路由器交换机设备管理
  10. 为什么html浮动高度不一样,css浮动导致的高度塌陷问题及清楚浮动的方法