djbdns
[Top] [All Lists]

Too many open files tinydns?

To: <dns@list.cr.yp.to>
Subject: Too many open files tinydns?
From: "Shaun" <mailinglists@unix-scripts.com>
Date: Wed, 15 Nov 2006 15:24:05 -0800
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-djbdns@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list dns@list.cr.yp.to
Mailing-list: contact dns-help@list.cr.yp.to; run by ezmlm
Today i ran into a problem where i realized one of my servers running tinydns stopped responding to dns requests.  I attached strace to the process and this is what i found flying down the screen...
 
open("data.cdb", O_RDONLY|O_NONBLOCK)   = -1 EMFILE (Too many open files)
write(2, "94df4d61:308f:0cdb - 0001 <removed>"..., 39) = 39
recvfrom(4, "\37\212\0\0\0\1\0\0\0\0\0\0\10<removed>\3com\0\0\1\0\1", 513, 0, {sa_family=AF_INET, sin_port=htons(17118), sin_addr=inet_addr("206.135.56.98")}, [16]) = 30
time(NULL)                              = 1163630773
A lsof greping data.cdb piped to wc -l shows that tinydns has 1020 instances of data.cdb open.
 
[root@blue service]# lsof |grep tinydns|grep data.cdb|wc -l
1020
is this normal?  do i just need to raise my open file limit or is there something more serious going on here?
 
~Shaun
<Prev in Thread] Current Thread [Next in Thread>