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

  • 相关阅读:
    Red Hat Enterprise Linux 7.2下使用RPM包安装SQL Server vNext
    VS2015解决方案资源管理器空白,不显示内容
    ArcEngine调用FeatureToLine工具传参问题
    ArcEngine调用GP里的Merge工具传参问题
    ArcGIS GP服务的发布及调用
    利用 Chrome 原生工具进行网页长截图
    关于ueditor与arcgis js api同用会报错的问题
    关于ueditor使用说明
    bootstraptable为行中的按钮添加事件
    关于html与body的高度问题
  • 原文地址:https://www.cnblogs.com/Ph-one/p/9013620.html
Copyright © 2011-2022 走看看