OOM-killer

  今天碰见个应用。一启动就被干掉了,jboss没有打出什么日志,然后看了下messages里面有OOM-killer.

Jun  1 10:09:15 test kernel: Out of Memory: Killed process 10645 (java).
Jun  1 10:12:28 test kernel: oom-killer: gfp_mask=0x4d0
Jun  1 10:12:28 test kernel: Mem-info:

然后自己第一想到的是直接把OOM-killer关闭掉

echo "0" > /proc/sys/vm/oom-kill 
  

启动应用后就惨了,直接把机器整来hang住了等不进去了,还是用虚拟机,直接强制重启,修复磁盘……

然后就

/etc/sysctl.conf 里添加

vm.lower_zone_protection=300

重新启动应用终于好了。

参考:http://www.redhat.com/archives/taroon-list/2007-August/msg00006.html

 

此条目发表在Admin分类目录。将固定链接加入收藏夹。

发表回复