- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
dmesg 打印的日志从两个月前就没有更新了,即使我们上周有很多进程被 OOM 杀死。
什么是 dmesg 源以及如何查看系统日志是否正常工作?
dmesg 输出:
[Mon Jul 6 21:56:27 2015] 736kB, rss:156kB, swap:0kB
[Fri Feb 26 11:11:43 2016] Out of memory in UB 6547: OOM killed process 15935 (getty) score 0 vm:12736kB, rss:156kB, swap:0kB
[Fri Feb 26 11:11:43 2016] Out of memory in UB 6547: OOM killed process 5898 (python) score 0 vm:1122780kB, rss:1063096kB, swap:0kB
[Fri Feb 26 13:50:13 2016] Out of memory in UB 6547: OOM killed process 3840 (getty) score 0 vm:12736kB, rss:152kB, swap:0kB
[Fri Feb 26 13:50:13 2016] Out of memory in UB 6547: OOM killed process 3841 (getty) score 0 vm:12736kB, rss:156kB, swap:0kB
[Fri Feb 26 13:50:13 2016] Out of memory in UB 6547: OOM killed process 6502 (getty) score 0 vm:12736kB, rss:168kB, swap:0kB
[Fri Feb 26 13:50:13 2016] Out of memory in UB 6547: OOM killed process 6504 (getty) score 0 vm:12736kB, rss:220kB, swap:0kB
[Fri Feb 26 13:50:14 2016] Out of memory in UB 6547: OOM killed process 6506 (getty) score 0 vm:12736kB, rss:328kB, swap:0kB
[Fri Feb 26 13:50:14 2016] Out of memory in UB 6547: OOM killed process 6508 (getty) score 0 vm:12736kB, rss:348kB, swap:0kB
[Fri Feb 26 13:50:14 2016] Out of memory in UB 6547: OOM killed process 6491 (python) score 0 vm:993704kB, rss:934084kB, swap:0kB
[Fri Feb 26 13:51:29 2016] Out of memory in UB 6547: OOM killed process 6510 (getty) score 0 vm:12736kB, rss:276kB, swap:0kB
[Fri Feb 26 13:51:29 2016] Out of memory in UB 6547: OOM killed process 6512 (getty) score 0 vm:12736kB, rss:276kB, swap:0kB
[Fri Feb 26 13:51:29 2016] Out of memory in UB 6547: OOM killed process 6534 (getty) score 0 vm:12736kB, rss:320kB, swap:0kB
[Fri Feb 26 13:51:29 2016] Out of memory in UB 6547: OOM killed process 6536 (getty) score 0 vm:12736kB, rss:316kB, swap:0kB
[Fri Feb 26 13:51:29 2016] Out of memory in UB 6547: OOM killed process 6525 (python) score 0 vm:992252kB, rss:932812kB, swap:0kB
[Fri Feb 26 13:52:09 2016] Out of memory in UB 6547: OOM killed process 6538 (getty) score 0 vm:12736kB, rss:276kB, swap:0kB
[Fri Feb 26 13:52:09 2016] Out of memory in UB 6547: OOM killed process 6540 (getty) score 0 vm:12736kB, rss:280kB, swap:0kB
[Fri Feb 26 13:52:09 2016] Out of memory in UB 6547: OOM killed process 6576 (getty) score 0 vm:12736kB, rss:284kB, swap:0kB
[Fri Feb 26 13:52:09 2016] Out of memory in UB 6547: OOM killed process 6578 (getty) score 0 vm:12736kB, rss:360kB, swap:0kB
[Fri Feb 26 13:52:09 2016] Out of memory in UB 6547: OOM killed process 6580 (getty) score 0 vm:12736kB, rss:332kB, swap:0kB
[Fri Feb 26 13:52:09 2016] Out of memory in UB 6547: OOM killed process 6582 (getty) score 0 vm:12736kB, rss:320kB, swap:0kB
[Fri Feb 26 13:52:09 2016] Out of memory in UB 6547: OOM killed process 6584 (getty) score 0 vm:6428kB, rss:356kB, swap:0kB
[Fri Feb 26 13:52:09 2016] Out of memory in UB 6547: OOM killed process 6586 (getty) score 0 vm:6428kB, rss:440kB, swap:0kB
[Fri Feb 26 13:52:09 2016] Out of memory in UB 6547: OOM killed process 6588 (getty) score 0 vm:12736kB, rss:372kB, swap:0kB
[Fri Feb 26 13:52:09 2016] Out of memory in UB 6547: OOM killed process 6589 (getty) score 0 vm:12736kB, rss:404kB, swap:0kB
[Fri Feb 26 13:52:09 2016] OOM killer in rage, 1 tasks killed
[Fri Feb 26 13:52:09 2016] OOM killer in rage, 1 tasks killed
[Fri Feb 26 13:52:09 2016] OOM killer in rage, 1 tasks killed
[Fri Feb 26 13:52:10 2016] OOM killer in rage, 1 tasks killed
[Fri Feb 26 13:52:10 2016] Out of memory in UB 6547: OOM killed process 1126 (beam.smp) score 0 vm:2922908kB, rss:508796kB, swap:0kB
[Sun Feb 28 09:48:26 2016] Out of memory in UB 6547: OOM killed process 6593 (getty) score 0 vm:12736kB, rss:156kB, swap:0kB
[Sun Feb 28 09:48:26 2016] Out of memory in UB 6547: OOM killed process 6597 (getty) score 0 vm:12736kB, rss:148kB, swap:0kB
[Sun Feb 28 09:48:26 2016] Out of memory in UB 6547: OOM killed process 4354 (python) score 0 vm:2192548kB, rss:2056640kB, swap:0kB
[Sun Feb 28 13:57:25 2016] Out of memory in UB 6547: OOM killed process 11648 (getty) score 0 vm:12736kB, rss:160kB, swap:0kB
[Sun Feb 28 13:57:25 2016] Out of memory in UB 6547: OOM killed process 11649 (getty) score 0 vm:12736kB, rss:152kB, swap:0kB
[Sun Feb 28 13:57:25 2016] Out of memory in UB 6547: OOM killed process 6599 (cron) score 0 vm:23604kB, rss:232kB, swap:0kB
[Sun Feb 28 13:57:25 2016] Out of memory in UB 6547: OOM killed process 30284 (java) score 0 vm:3811464kB, rss:463996kB, swap:0kB
服务器时间似乎有一段时间是错误的(2016 年)(我不知道为什么),但现在已修复:
ali@server:~$ date
Mon Aug 31 04:14:05 EDT 2015
最佳答案
什么是dmesg 源码:dmesg 读取存储在内核缓冲区which log_buf 中的日志。dmesg 立即读取 printk 缓冲区并将其转储到 shell。
cat/proc/kmsg 可用于查看日志是否存储在 printk 缓冲区中,该缓冲区在存储时不断读取 printk 日志。
但是由于您上周尝试过终止进程并在 dmesg 中显示这些日志,因此我建议您检查系统的日期和时间设置。
关于linux - dmesg 没有记录任何东西,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32306867/
这个fn是吗: function isplainobj ( obj ) { return Object.prototype.toString.call( obj ) === "[object
我尝试创建一个我没有经验的小 bash 脚本。我尝试做类似的事情: #!/bin/bash statut="na" if [ $proc = 0 ]; then statut = "close
我想重写 HighLine 的几个方法来自定义我的控制台,目前我的代码如下所示: cmd = ask("#{@prompt_label} #{@prompt_separator} ",
鉴于下面的 HTML,我尝试使用 jQuery 来匹配所有具有类“foo”的跨度的列表项,并且该跨度应包含文本“relevant”。 Some text relevant Some more
我拥有一个 5 美元 20GB SSD Digital Ocean Droplet,它几乎用完了 Docker 镜像和容器的空间。 有没有办法购买一个卷,将其连接到服务器并安全地将所有 Docker
我有这样的表: id name number result stuff stuff stuff stuff 我只想将 class = "red" 添加到
我需要计算两点之间的距离,但不是以常规方式。我需要知道“东西距离”+“南北距离”。我想这比常规的“乌鸦飞翔”计算更简单,但我仍然不知道如何做到这一点。 我想使用 MySQL 查询来执行此操作,并且最好
#include #include #include typedef struct dict_pair { void *key; void *value; struct dict_p
为什么当我尝试通过 将 char[] word 写入控制台时会发生这种奇怪的事情 Console.WriteLine(word); 我得到了一个正确的结果,但是当我写的时候 Console.Write
一个简单的例子: class C{} class B{ @Inject C c; void doSomething(){ System.out.println(c);
我想做某事,但不确定如何描述它。我有这门课 public class Company { private List _persons; private Person GetPersonByNa
我正在尝试实现我自己的 qDebug()样式调试输出流,这基本上是我目前所拥有的: struct debug { #if defined(DEBUG) template std::os
所以我正在为我的应用程序编写一个搜索功能,代码如下: - (void) selectObject: (NSString *)notes{ [axKnotes removeAllObjects]
我想在 Rust 中匹配一种复杂的继承式东西: struct Entity { pub kind: EntityKind, } pub enum EntityKind { Player
我是 SQL 新手。这没有返回任何结果...... SELECT media.id as mediaid, media.title as mediatitle, media.description
在微型 SDCard 上写入 Android things 图像并将该卡插入 Raspberry Pi 3 Model B 并打开电源,启动时显示“Auto config Please wait”然后
这是一个常见的但是文本出现在框的右侧,不是极右但几乎是这样 h3: ................................................ .................
#include #include #include #include #include int main(int argc, string argv[]) { if(argc >
所以我试图让一些东西相互堆叠。首先,查看工作链接会有所帮助,您会看到问题所在: http://brownbox.net.au/clients/matchlessphotography/ 现在我需要使用
我想在禁用 javascript 时在我的网站顶部显示一条消息(就像在 SO 上一样),但在谷歌浏览器上不起作用 最佳答案 看起来是这样。 您可以使用 javascript 隐藏“noscript”消
我是一名优秀的程序员,十分优秀!