免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4487 | 回复: 13
打印 上一主题 下一主题

[DNS] 请教一下这个错误怎么处理 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-09-26 16:26 |只看该作者 |倒序浏览
最近DNS日志突然大量出现这种信息
Sep 26 16:22:33 localhost named[7710]: client 10.19.10.48#49308: error sending response: not enough free resources
Sep 26 16:22:33 localhost named[7710]: client 10.19.10.48#54737: error sending response: not enough free resources
Sep 26 16:22:34 localhost named[7710]: client 10.19.13.181#61557: error sending response: not enough free resources
Sep 26 16:22:34 localhost named[7710]: client 10.19.10.48#63213: error sending response: not enough free resources
Sep 26 16:22:34 localhost named[7710]: client 10.19.10.48#53367: error sending response: not enough free resources
Sep 26 16:22:34 localhost named[7710]: client 10.19.9.117#64299: error sending response: not enough free resources
Sep 26 16:22:34 localhost named[7710]: client 10.19.10.48#55055: error sending response: not enough free resources

我的系统是CentOS 5.3 bind是bind-9.3.6-20.P1.el5_8.6
系统的负载很低,并且只开了DNS服务,没有起iptables
随机抓了一分钟的包,53端口的请求在58000多,也不高。
有谁遇到过吗?是什么原因?求指教。

论坛徽章:
0
2 [报告]
发表于 2013-09-26 16:36 |只看该作者
回复 1# bbnnq

另外,我有另一台机器同样的系统和bind版本并没有这个问题,我试过将网线从交换机的百兆口换到千兆口没有效果。

论坛徽章:
16
IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每月发帖之星
日期:2015-09-11 19:30:52IT运维版块每周发帖之星
日期:2015-09-11 19:20:31IT运维版块每日发帖之星
日期:2015-08-26 06:20:00每日论坛发贴之星
日期:2015-08-20 06:20:00IT运维版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15金牛座
日期:2014-05-04 16:58:09双子座
日期:2013-12-17 16:44:37辰龙
日期:2013-11-22 15:20:59狮子座
日期:2013-11-18 22:55:08射手座
日期:2013-11-12 10:54:26
3 [报告]
发表于 2013-09-26 20:27 |只看该作者
空间? limits?

论坛徽章:
0
4 [报告]
发表于 2013-09-27 12:32 |只看该作者
回复 3# wenhq


    df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p1      65G   14G   48G  22% /

limits指什么?

论坛徽章:
0
5 [报告]
发表于 2013-09-27 14:13 |只看该作者
ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 143360
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 65535
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 143360
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

论坛徽章:
16
IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每月发帖之星
日期:2015-09-11 19:30:52IT运维版块每周发帖之星
日期:2015-09-11 19:20:31IT运维版块每日发帖之星
日期:2015-08-26 06:20:00每日论坛发贴之星
日期:2015-08-20 06:20:00IT运维版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15金牛座
日期:2014-05-04 16:58:09双子座
日期:2013-12-17 16:44:37辰龙
日期:2013-11-22 15:20:59狮子座
日期:2013-11-18 22:55:08射手座
日期:2013-11-12 10:54:26
6 [报告]
发表于 2013-09-27 15:14 |只看该作者
open files                      (-n) 65535

lsof -p pidofdns |wc -l

论坛徽章:
0
7 [报告]
发表于 2013-09-27 15:17 |只看该作者
lsof -p 3278 |wc -l   
46

论坛徽章:
16
IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每月发帖之星
日期:2015-09-11 19:30:52IT运维版块每周发帖之星
日期:2015-09-11 19:20:31IT运维版块每日发帖之星
日期:2015-08-26 06:20:00每日论坛发贴之星
日期:2015-08-20 06:20:00IT运维版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15金牛座
日期:2014-05-04 16:58:09双子座
日期:2013-12-17 16:44:37辰龙
日期:2013-11-22 15:20:59狮子座
日期:2013-11-18 22:55:08射手座
日期:2013-11-12 10:54:26
8 [报告]
发表于 2013-09-27 15:32 |只看该作者
dmesg|grep -i error

http://www.cnblogs.com/ayanmw/archive/2012/02/28/2371393.html

http://lists.freebsd.org/piperma ... 09-June/199821.html

参考下,应该说是你的dnsserver上有个地方限制资源使用了。stack?MS报错不是这方面的

顺便再google一下error。

论坛徽章:
0
9 [报告]
发表于 2013-09-27 16:07 |只看该作者
dmesg|grep -i error
Contact your BIOS vendor to see if the E752x error registers can be safely un-hidden

跟stack好像没关系,我调大了一些没有效果
ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 16383
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 10240
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 16383
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

http://lists.freebsd.org/piperma ... 09-June/199821.html这篇和类似的我之前看到了,那三种情况似乎都不适合,机器我换过,交换机口也换过,,排除网卡的原因,如果是攻击的话,又没有另一台好的请求数高。

http://apocryph.org/archives/659这篇跟我现在在查的方式一样,想从bind的源代码里找到是在什么情况会导致程序调用ISC_R_NORESOURCES这个
宏变量,但是最后也没有解决办法,下面的回复提到了limit,所以又转回来了。

论坛徽章:
16
IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每月发帖之星
日期:2015-09-11 19:30:52IT运维版块每周发帖之星
日期:2015-09-11 19:20:31IT运维版块每日发帖之星
日期:2015-08-26 06:20:00每日论坛发贴之星
日期:2015-08-20 06:20:00IT运维版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15金牛座
日期:2014-05-04 16:58:09双子座
日期:2013-12-17 16:44:37辰龙
日期:2013-11-22 15:20:59狮子座
日期:2013-11-18 22:55:08射手座
日期:2013-11-12 10:54:26
10 [报告]
发表于 2013-09-27 17:48 |只看该作者
netstat -altntup|grep  53 输出下。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP