zoukankan      html  css  js  c++  java
  • Dell 刀片服务器CentOS6.5mini开机20~30分钟宕机

    今天查看系统日志发现大量的nf_conntrack: table full, dropping packet. 错误

    cat /var/log/messages | more
    Jun  7 09:52:05 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:05 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:05 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:05 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:05 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:05 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:05 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:05 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:10 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:10 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:10 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:10 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:10 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:10 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:10 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:10 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:10 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:10 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:15 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:15 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:15 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:15 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:15 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:15 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:15 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:15 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:15 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:15 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:23 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:23 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:23 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:23 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:23 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:23 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:23 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:23 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:23 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:23 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:30 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:30 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:30 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:30 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:30 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:30 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:30 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:30 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:30 localhost kernel: nf_conntrack: table full, dropping packet.
    Jun  7 09:52:30 localhost kernel: nf_conntrack: table full, dropping packet.
    解决办法:
    vim /etc/sysctl.conf
    加入:
    net.nf_conntrack_max = 655350
    net.netfilter.nf_conntrack_tcp_timeout_established = 1200
    CENTOS 6.1或以上版本使用:
    net.netfilter.nf_conntrack_max = 655350
    net.netfilter.nf_conntrack_tcp_timeout_established = 1200
    保存后执行 sysctl -p 使之生效,然后观察该错误是不是没有了。
  • 相关阅读:
    Knockoutjs 实践入门 (2) 绑定事件
    HTTP If-Modified-Since引发的浏览器缓存汇总
    net.sf.json和 com.fasterxml.jackson中对象转json的区别
    JPA EntityManager详解
    Spring JPA中OneToOne和OneToMany用法
    Spring Data JPA中CrudRepository与JpaRepository的不同
    Git提交撤销
    Tomcat启动报StackOverflowError
    Git分支合并冲突解决(续)
    Git分支合并冲突解决
  • 原文地址:https://www.cnblogs.com/hamy/p/3683343.html
Copyright © 2011-2022 走看看