我现在在/ var / log / syslog中看到的是
Memory cgroup out of memory: Kill process 29187 (beam.smp) score 998 or sacrifice childKilled process 29302 (cpu_sup) total-vm:4300kB,anon-RSS:76kB,file-RSS:272kBbeam.smp invoked oom-killer: gfp_mask=0xd0,order=0,oom_score_adj=0beam.smp cpuset=/ mems_allowed=0-3
我的机器上有很多beam.smp进程,找出OOM杀手杀死的特定进程并不是很方便.
解决方法echo 1 > /proc/sys/vm/oom_dump_tasks
这似乎是你可以让内核在内存不足错误上显示的最大值.
https://www.kernel.org/doc/Documentation/sysctl/vm.txt
总结Enables a system-wIDe task dump (excluding kernel threads) to be
produced when the kernel performs an OOM-killing and includes such
information as pID,uID,tgID,vm size,RSS,nr_ptes,swapents,
oom_score_adj score,and name. This is helpful to determine why the
OOM killer was invoked,to IDentify the rogue task that caused it,and
to determine why the OOM killer chose the task it dID to kill.If this is set to zero,this information is suppressed. On very large
systems with thousands of tasks it may not be feasible to dump the
memory state information for each one. Such systems should not be
forced to incur a performance penalty in OOM conditions when the
information may not be desired.If this is set to non-zero,this information is shown whenever the OOM killer actually kills a memory-hogging task.
以上是内存溢出为你收集整理的linux – 在OOM杀手日志中查看完整程序命令行参数全部内容,希望文章能够帮你解决linux – 在OOM杀手日志中查看完整程序命令行参数所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)