[Dovecot] Too many open files

Amitai Schlair schmonz at schmonz.com
Fri Dec 1 00:19:27 UTC 2006


On Nov 19, 2006, at 5:10 AM, Timo Sirainen wrote:

> On 19.11.2006, at 6.57, Amitai Schlair wrote:
>
>> Timo Sirainen wrote:
>>
>>> No. There's a leak somewhere. Could you check what file  
>>> descriptors are
>>> open for such process once it has been running for some hours? So  
>>> lsof
>>> -p <pid> or look into /proc/pid/fd/ directly. If it's leaking it  
>>> should
>>> show at least tens of opened files. Once I know what files it's not
>>> closing it's easier for me to fix this.
>>
>> I'm still getting "Too many open files" with 1.0rc14 on NetBSD with
>> kqueue; when this happens, lsof says there are over 1000 pipes  
>> open. Is
>> this addressed in 1.0rc15? If not, what can I do to help it be  
>> addressed
>> before 1.0?
>
> I guess it's "dovecot" process that's leaking those fds? Does the  
> number of used fds grow every time you login+logout?

Yes, it's the "dovecot" process. With a very quick-and-dumb test  
(quitting and reopening Mail.app) it seems to have more open pipes  
each time.

> I tried debugging this with one FreeBSD and one NetBSD, but I  
> couldn't reproduce it. What NetBSD version are you using?

This is on NetBSD 2.0.2. (If I could upgrade, I would, but I can't,  
so I won't. :-)

Thanks,

- Amitai


More information about the dovecot mailing list