+-
linux – TCP缓冲区不断填满(Recv-Q full):命名为无响应
使用netstat -an,我设置了Recv-Q已满的消息.它填满了rmem_max:

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
udp   1894912      0 10.0.64.150:53              0.0.0.0:*

(它会一直“填充”,直到它崩溃)

尺寸:

/proc/sys/net/core/optmem_max:20480
/proc/sys/net/core/rmem_default:8388608
/proc/sys/net/core/rmem_max:8388608
/proc/sys/net/core/wmem_default:229376
/proc/sys/net/core/wmem_max:229376

netstat -su中的结果:

Udp:
426057 packets received
37152 packets to unknown port received.
2350589 packet receive errors
517422 packets sent

谁有想法?

最佳答案
显然,日志记录存在问题.我将dns服务器设置为logys to rsyslog.在stracing时,syslog的文件描述符似乎没有“工作”.

通过将绑定日志设置为本地文件来解决:

logging{
  channel bindlog {
    file "/var/log/named/bind.log" versions 3 size 5m;
    severity info;
    print-time yes;
    print-severity yes;
    print-category yes;
  };
  category default{
    bindlog;
  };
};
点击查看更多相关文章

转载注明原文:linux – TCP缓冲区不断填满(Recv-Q full):命名为无响应 - 乐贴网