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 ? Dovecot is set to 31768 so it is definately the user process here. Anything I can tweak in dovecot.conf to prevent this? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://dovecot.org/pipermail/dovecot/attachments/20061108/21c8f043/attachment-0001.html>
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: signature.asc 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.bin>
On Wed, 2006-11-08 at 11:45 -0500, bofh list wrote:> imap 12009 user 16u REG 0,19 135348 > 9876198 /chroot/mailstore/user/Maildir/.Trash/dovecot.index.log.2 > (netapp-storage:/vol/mailstore) > imap 12009 user 17u REG 0,19 135348 > 9876198 /chroot/mailstore/user/Maildir/.Trash/dovecot.index.log.2 > (netapp-storage:/vol/mailstore).. Oh, I see. Could you test if this patch fixes it: http://dovecot.org/list/dovecot-cvs/2006-November/006767.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20061108/aa91489e/attachment.bin>