使用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;
};
};
标签:rhel,linux,networking,udp,bind
来源: https://codeday.me/bug/20190813/1649006.html