[Dovecot] Too many open files

Timo Sirainen tss at iki.fi
Wed Nov 8 15:52:17 UTC 2006


On Wed, 2006-11-08 at 10:31 -0500, bofh list wrote:
> dovecot: Nov 08 04:04:23 Error: IMAP(user): open() failed with file
> mailstore/user/Maildir/.Alerts/dovecot.index.log.2: Too many open
> files
> dovecot: Nov 08 04:04:23 Error: IMAP(user):
> open(mailstore/user/Maildir/.Alerts/tmp/1162976663.P4853Q1817.server)
> failed: Too many open files
> dovecot: Nov 08 04:04:23 Error: IMAP(user): open() failed with file
> mailstore/user/Maildir/dovecot.index.tmp: Too many open files
> 
> Seeing this with both 1.0beta9 and 1.0rc12
> 
> This occured when a user was not using the client, however the
> client(Thunderbird) filtering mechanism was active as their client is
> left on 24x7.
> 
> Do we really need to increase individual user maxfiles to >1024 ? 

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20061108/368cd7b9/attachment.pgp 


More information about the dovecot mailing list