zoukankan      html  css  js  c++  java
  • kernel: swapper: page allocation failure. order:1, mode:0x20

    场景:领导电话通知,我们的主站宕机了,到家后从另外一台机器上ssh一直处于等待状态,开始怀疑机器的负载比较高,
    后查看监控机器,发现网卡、cpu、nginx连接数.....通通都没有数据了,显然不是负载高度问题了,应该是机器死机了,立刻通过ipmi重启机器
    重启机器后,机器正常!
    其实这个机器都正常运行大半年了,没啥问题! 
    查询/var/log/messages,发现大量的信息如下:

    点击(此处)折叠或打开

    1. Mar 12 11:15:04 hy1 kernel: php-fpm: page allocation failure. order:1, mode:0x20
    2. Mar 12 11:15:04 hy1 kernel: php-fpm: page allocation failure. order:1, mode:0x20
    3. Mar 12 11:15:04 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
    4. Mar 12 11:15:05 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
    5. Mar 12 11:15:05 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
    6. Mar 12 11:15:05 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
    7. Mar 12 11:15:05 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
    8. Mar 12 11:15:05 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
    9. Mar 12 11:15:05 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
    10. Mar 12 11:15:06 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
    11. Mar 12 11:15:09 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
    12. Mar 12 11:15:09 hy1 kernel: nginx: page allocation failure. order:1, mode:0x20
    13. Mar 12 11:15:09 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
    14. Mar 12 11:15:10 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
    15. Mar 12 11:15:11 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
    16. Mar 12 11:15:11 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
    17. Mar 12 11:15:11 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
    18. Mar 12 11:15:11 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
    19. Mar 12 11:15:11 hy1 kernel: mysqld: page allocation failure. order:1, mode:0x20
    20. Mar 12 11:17:33 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
    21. Mar 12 11:17:53 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
    22. Mar 12 11:17:53 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
    23. Mar 12 11:17:53 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
    24. Mar 12 11:17:53 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
    25. Mar 12 11:17:54 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
    26. Mar 12 11:17:54 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20
    27. Mar 12 11:17:54 hy1 kernel: swapper: page allocation failure. order:1, mode:0x20

    开始怀疑是系统的内存被吃光了,但通过检查监控,发现出问题的时候,内存还有蛮多可以用的! 当时的内存使用情况,见附件!

    后来查到是内核的的一个bug
    解决方法如下:
    vi /etc/sysctl.conf
    写入:
    vm.zone_reclaim_mode = 1
    sysctl  -p  使其理解生效

    原文:http://blog.chinaunix.net/uid-20776139-id-4155388.html

  • 相关阅读:
    Excel导出采用mvc的ExcelResult继承遇到的问题Npoi导出
    Excel导出采用mvc的ExcelResult继承遇到的问题
    word模板导出的几种方式:第三种:标签替换(DocX组件读取与写入Word)
    word模板导出的几种方式:第二种:C#通过模板导出Word(文字,表格,图片) 占位符替换
    word模板导出的几种方式:第一种:占位符替换模板导出(只适用于word中含有表格形式的)
    vue 学习链接地址
    创建作业(JOB)
    html5 浏览文件
    Guava monitor
    Spring Rabbitmq HelloWorld实例
  • 原文地址:https://www.cnblogs.com/Ph-one/p/9013620.html
Copyright © 2011-2022 走看看