dmesg命令应用
昨晚上线服务的时候,看log偶然发现服务在启动半小时左右就会被supervise重新拉起,也没有core。通过重新启动的服务发现内存飙涨,且持续增加,怀疑是内存打满,进程被kill了。

其实怀疑是正确的,如何验证呢?其实通过dmesg就可以分分钟验证。

详细信息如下:
[ 0.000000] Out of memory: Kill process 8668 (dsnav) score 947 or sacrifice child
[ 0.000000] Killed process 8668, UID 501, (dsnav) total-vm:127974752kB, anon-rss:124608960kB, file-rss:8kB
[ 0.000000] argus-agent invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0
[ 0.000000] argus-agent cpuset=/ mems_allowed=0
[ 0.000000] Pid: 6385, comm: argus-agent Tainted: G --------------- H 2.6.32_431-3 #2
[ 0.000000] Call Trace:
[ 0.000000] [<ffffffff810c8bc1>] ? cpuset_print_task_mems_allowed+0x91/0xb0
[ 0.000000] [<ffffffff8111a210>] ? dump_header+0x90/0x1b0
[ 0.000000] [<ffffffff8111a652>] ? oom_kill_process+0x82/0x2a0
[ 0.000000] [<ffffffff8111aaa0>] ? select_bad_process.clone.1+0xe0/0x120
[ 0.000000] [<ffffffff8111ac76>] ? out_of_memory+0xe6/0x210
[ 0.000000] [<ffffffff81126c01>] ? __alloc_pages_nodemask+0x8e1/0x900
[ 0.000000] [<ffffffff81119082>] ? filemap_fault+0x1b2/0x520
[ 0.000000] [<ffffffff81140364>] ? __do_fault+0x54/0x530
[ 0.000000] [<ffffffff81140937>] ? handle_pte_fault+0xf7/0xa40
[ 0.000000] [<ffffffff8150e5f0>] ? thread_return+0x4e/0x77e
[ 0.000000] [<ffffffff81099342>] ? enqueue_hrtimer+0x82/0xd0
[ 0.000000] [<ffffffff81099701>] ? lock_hrtimer_base+0x31/0x60
[ 0.000000] [<ffffffff8109a27f>] ? hrtimer_try_to_cancel+0x3f/0xd0
[ 0.000000] [<ffffffff81510dd6>] ? rwsem_down_read_failed+0x26/0x30
[ 0.000000] [<ffffffff811414aa>] ? handle_mm_fault+0x22a/0x300
[ 0.000000] [<ffffffff810466f8>] ? __do_page_fault+0x138/0x480
[ 0.000000] [<ffffffff811bd906>] ? ep_poll+0x306/0x330
[ 0.000000] [<ffffffff810603a0>] ? default_wake_function+0x0/0x20
[ 0.000000] [<ffffffff8151410e>] ? do_page_fault+0x3e/0xa0
[ 0.000000] [<ffffffff815114d5>] ? page_fault+0x25/0x30
[ 0.000000] Mem-Info:
[ 0.000000] DMA per-cpu:
[ 0.000000] CPU 0: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 1: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 2: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 3: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 4: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 5: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 6: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 7: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 8: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 9: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 10: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 11: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 12: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 13: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 14: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 15: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 16: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 17: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 18: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 19: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 20: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 21: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 22: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 23: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 24: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 25: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 26: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 27: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 28: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 29: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 30: hi: 0, btch: 1 usd: 0
[ 0.000000] CPU 31: hi: 0, btch: 1 usd: 0
[ 0.000000] DMA32 per-cpu:
[ 0.000000] CPU 0: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 1: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 2: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 3: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 4: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 5: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 6: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 7: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 8: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 9: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 10: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 11: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 12: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 13: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 14: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 15: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 16: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 17: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 18: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 19: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 20: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 21: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 22: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 23: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 24: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 25: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 26: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 27: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 28: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 29: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 30: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 31: hi: 186, btch: 31 usd: 0
[ 0.000000] Normal per-cpu:
[ 0.000000] CPU 0: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 1: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 2: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 3: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 4: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 5: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 6: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 7: hi: 186, btch: 31 usd: 16
[ 0.000000] CPU 8: hi: 186, btch: 31 usd: 1
[ 0.000000] CPU 9: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 10: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 11: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 12: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 13: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 14: hi: 186, btch: 31 usd: 20
[ 0.000000] CPU 15: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 16: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 17: hi: 186, btch: 31 usd: 16
[ 0.000000] CPU 18: hi: 186, btch: 31 usd: 1
[ 0.000000] CPU 19: hi: 186, btch: 31 usd: 1
[ 0.000000] CPU 20: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 21: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 22: hi: 186, btch: 31 usd: 15
[ 0.000000] CPU 23: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 24: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 25: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 26: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 27: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 28: hi: 186, btch: 31 usd: 1
[ 0.000000] CPU 29: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 30: hi: 186, btch: 31 usd: 0
[ 0.000000] CPU 31: hi: 186, btch: 31 usd: 0
[ 0.000000] active_anon:32558911 inactive_anon:44 isolated_anon:0
[ 0.000000] active_file:168 inactive_file:0 isolated_file:0
[ 0.000000] unevictable:0 dirty:37 writeback:0 unstable:0
[ 0.000000] free:131744 slab_reclaimable:7708 slab_unreclaimable:17716
[ 0.000000] mapped:249 shmem:48 pagetables:67098 bounce:0
[ 0.000000] DMA free:15888kB min:4kB low:4kB high:4kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15260kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
[ 0.000000] lowmem_reserve[]: 0 1856 129116 129116
[ 0.000000] DMA32 free:444884kB min:968kB low:1208kB high:1452kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:1900568kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
[ 0.000000] lowmem_reserve[]: 0 0 127260 127260
[ 0.000000] Normal free:66204kB min:66604kB low:83252kB high:99904kB active_anon:130235644kB inactive_anon:176kB active_file:672kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:130314240kB mlocked:0kB dirty:148kB writeback:0kB mapped:996kB shmem:192kB slab_reclaimable:30832kB slab_unreclaimable:70864kB kernel_stack:10960kB pagetables:268392kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:1681 all_unreclaimable? yes
[ 0.000000] lowmem_reserve[]: 0 0 0 0
[ 0.000000] DMA: 0*4kB 2*8kB 0*16kB 2*32kB 1*64kB 1*128kB 1*256kB 0*512kB 1*1024kB 1*2048kB 3*4096kB = 15888kB
[ 0.000000] DMA32: 7*4kB 7*8kB 6*16kB 7*32kB 5*64kB 4*128kB 5*256kB 10*512kB 9*1024kB 5*2048kB 102*4096kB = 444884kB
[ 0.000000] Normal: 2444*4kB 832*8kB 612*16kB 367*32kB 175*64kB 117*128kB 1*256kB 1*512kB 1*1024kB 1*2048kB 0*4096kB = 67984kB
[ 0.000000] 0 total pagecache pages
[ 0.000000] 0 pages in swap cache
[ 0.000000] Swap cache stats: add 0, delete 0, find 0/0
[ 0.000000] Free swap = 0kB
[ 0.000000] Total swap = 0kB
[ 0.000000] 33554416 pages RAM
[ 0.000000] 594768 pages reserved
[ 0.000000] 2419 pages shared
[ 0.000000] 32818620 pages non-shared
dmesg命令应用的更多相关文章
- [转]Linux系统中‘dmesg’命令处理故障和收集系统信息的7种用法
'dmesg'命令显示linux内核的环形缓冲区信息,我们可以从中获得诸如系统架构.cpu.挂载的硬件,RAM等多个运行级别的大量的系统信息.当计算机启动时,系统内核(操作系统的核心部分)将会被加载到 ...
- linux dmesg命令参数及用法详解(linux显示开机信息命令)
linux dmesg命令参数及用法详解(linux显示开机信息命令) http://blog.csdn.net/zhongyhc/article/details/8909905 功能说明:显示开机信 ...
- linux dmesg命令
linux dmesg命令详解 功能说明:显示开机信息. 语 法:dmesg [-cn][-s ] 补充说明:kernel会将开机信息存储在ring buffer,若是开机时来不及查看信息,可利用 ...
- (转)Linux 系统设置 : dmesg 命令详解
原文:https://blog.csdn.net/yexiangCSDN/article/details/80683246 https://www.cnblogs.com/duanxz/p/34770 ...
- Linux下dmesg命令处理故障和收集系统信息的7种用法
目录: <syslog之一:Linux syslog日志系统详解> <syslog之二:syslog协议及rsyslog服务全解析> <syslog之三:建立Window ...
- linux 的dmesg命令
dmesg命令参考博客 http://www.linuxso.com/command/dmesg.html dmesg用来显示内核环缓冲区(kernel-ring buffer)内容,内核将各种消息存 ...
- dmesg命令详解
基础命令学习目录 http://linux.cn/article-3587-1.html dmesg 命令的使用范例 下面我们展示一些最负盛名的‘dmesg’命令工具以及其实际使用举例.‘dmesg’ ...
- dmesg命令的使用
dmesg命令用于打印Linux系统开机启动信息,kernel会将开机信息存储在ring buffer中.您若是开机时来不及查看信息,可利用dmesg来查看(print or control the ...
- Linux系统中‘dmesg’命令处理故障和收集系统信息的7种用法
转自:https://linux.cn/article-3587-1.html 'dmesg'命令显示linux内核的环形缓冲区信息,我们可以从中获得诸如系统架构.cpu.挂载的硬件,RAM等多个运行 ...
- Linux性能测试 dmesg命令
dmesg 命令主要用来显示内核信息.使用 dmesg 可以有效诊断机器硬件故障或者添加硬件出现的问题. 另外,使用 dmesg 可以确定您的服务器安装了那些硬件.每次系统重启,系统都会检查所有硬件 ...
随机推荐
- C/C++控制台输出时设置字体及背景颜色
1.改变整个控制台的颜色用 system("color 0A"); 其中color后面的0是背景色代号,A是前景色代号.各颜色代码如下: 0=黑色 1=蓝色 2=绿色 3=湖蓝色 ...
- 统计中的t检验
1.什么情况下,应用t检验 1. 已知总体的均值m,或者我们假设了一个总体均值m: 2. 我们知道样本的个数n,样本的的方差var,样本的均值m: 3. 我们假设总体,或者样本都是服从正太分布的. 2 ...
- hibernate反向工程 (eclipse和myeclipse)【转】
myeclipse下hibernate反向工程: 1.选择myeclipse hibernate视图 2.建立与后台数据库的连接 1).configure database driver: 2).添加 ...
- 在浏览器中体验 Ubuntu
近日,Canonical将Ubuntu官网中添加了在线导览的功能,你可以在任何地方使用这个Ubuntu 演示版.Ubuntu背后的公司Canonical为 Linux 推广做了很多努力.无论你有多么不 ...
- 接口测试框架开发(三):maven+restAssured+Excel(jxl)+testng+extentreports的接口自动化
1.http://www.cnblogs.com/lin-123/p/7151031.html 2.http://www.cnblogs.com/lin-123/p/7151046.html 3.ht ...
- Google Maps API v2密钥申请
1. 进入到Google APIs Console页面 https://code.google.com/apis/console/ 点击左边导航栏的Seivices进入 在All services 的 ...
- 内网渗透技巧:判断机器真实外网IP的5种方法总结
在内网渗透中有时需要在某台WEB服务器中留下后门,该机器可以通过内网IP建立IPC连接,但还需要获知外网IP或域名才能访问Wbshell,在无网关权限的情况下,我总结了有如下方法: 1.通过nsloo ...
- 如何为iTunes Connect准备应用
原地址:http://blog.sina.com.cn/s/blog_947c4a9f0101dded.html 如果你已经成功注册了iOS开发者,那么现在就可以登陆iTunes Connect来管理 ...
- 算法笔记_062:蓝桥杯练习 最小乘积(基本型)(Java)
目录 1 问题描述 2 解决方案 1 问题描述 问题描述 给两组数,各n个. 请调整每组数的排列顺序,使得两组数据相同下标元素对应相乘,然后相加的和最小.要求程序输出这个最小值. 例如两组数分别为 ...
- java阅读笔记
前言:面向对象设计的几大原则? 1>针对接口编程,而不是针对实现编程 2>优先使用对象组合,而不是类继承 1.只根据抽象类中定义的接口来操纵对象有以下两个好处? 1)客户无须知道他们使用对 ...