[avahi] accept(): Too many open files

Lennart Poettering lennart at poettering.net
Thu Mar 20 10:48:01 PDT 2008


On Thu, 20.03.08 02:56, Mark Edwards (mark at antsclimbtree.com) wrote:

> Running Avahi 0.6.16 on Debian 4.0.  I get a series of messages like  
> the following each morning in the logs, like the following:
> 
> Mar 18 04:00:07 sqwubbsy avahi-daemon[6062]: accept(): Too many open  
> files
> Mar 18 04:00:08 sqwubbsy avahi-daemon[6062]: accept(): Too many open  
> files
> Mar 18 04:00:11 sqwubbsy avahi-daemon[6062]: accept(): Too many open  
> files
> 
> This happens at the same time, 4am.  It coincides with a set of  
> webmin cron jobs that presumably cause some kind of open file  
> exhaustion, similar to the following bug report:
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=461181
> 
> I have tried doubling my /proc/sys/fs/file-max from the default of  
> 99196 to 198392, and it seems to have no effect.
> 
> Can anyone here suggest something?  Thanks.

Explore /proc/$(pidof avahi-daemon)/fd/ and find out to what file or
other fd type all those open fds actually refer to. 

Histroic versions of Avahi didn't close all open fds on startup. So it
maybe some program is leaking fds when starting Avahi? I remember some
initng users having a problem like that with initng leaking fds like
stupid or something like it.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4


More information about the avahi mailing list