[Dovecot] Too many open files with test32
Hi Timo and others,
I'm using test32 since today and I'm getting this error once every 2 hours or so:
dovecot: Jul 30 20:21:26 Error: IMAP(jens@gutzeit.at): open(/var/mail/data/jens/jens@gutzeit.at/maildir/.INBOX.Gentoo.Security/dovecot-uidlist) failed: Too many open files dovecot: Jul 30 20:21:26 Error: IMAP(jens@gutzeit.at): file maildir-uidlist.c: line 147 (maildir_uidlist_deinit): assertion failed: (!UIDLIST_IS_LOCKED(uidlist))
The problem is not specific to this mailbox.
I hadn't this problem with the stable releases and I've also not set any special limits for the dovecot processes.
I'm using a grsec pathed kernel (linux 2.6.7), the kern log says: grsec: attempted resource overstep by requesting 1024 for RLIMIT_NOFILE against limit 1024 by /usr/local/libexec/dovecot/imap[imap:19114] uid/euid:1011/1011 gid/egid:448/448, parent /usr/local/sbin/dovecot[dovecot:7799] uid/euid:0/0 gid/egid:0/0
Does dovecot really need more then 1024 filedescriptors or is it a bug?
If you need more information just ask.
best regards, Jens
On 30.7.2004, at 21:43, Jens Gutzeit wrote:
I'm using test32 since today and I'm getting this error once every 2 hours or so:
dovecot: Jul 30 20:21:26 Error: IMAP(jens@gutzeit.at): open(/var/mail/data/jens/jens@gutzeit.at/maildir/ .INBOX.Gentoo.Security/dovecot-uidlist) failed: Too many open files
Could you look from /proc/pid-of-imap/fd/ what the used files are after
it contains more than 10-20?
On Sat, Jul 31, 2004 at 02:44:22AM +0300, Timo Sirainen wrote:
Could you look from /proc/pid-of-imap/fd/ what the used files are after
it contains more than 10-20?
cat root # ls /proc/5950/fd/ 0 11 14 17 2 22 25 28 30 33 36 39 41 44 47 5 52 55 58 60 63 66 8 1 12 15 18 20 23 26 29 31 34 37 4 42 45 48 50 53 56 59 61 64 68 9 10 13 16 19 21 24 27 3 32 35 38 40 43 46 49 51 54 57 6 62 65 7
I've also run lsof -p 5950, output is at: http://gutzeit.at/lsof.dovecot.txt
Hope this helps, Jens
On 31.7.2004, at 06:49, Jens Gutzeit wrote:
On Sat, Jul 31, 2004 at 02:44:22AM +0300, Timo Sirainen wrote:
Could you look from /proc/pid-of-imap/fd/ what the used files are after it contains more than 10-20?
cat root # ls /proc/5950/fd/
Well, ls -l would have been more helpful :)
I've also run lsof -p 5950, output is at: http://gutzeit.at/lsof.dovecot.txt
But this is just as good. I always forget lsof even exists.
So looks like it's leaking dovecot.index files. Found and fixed, I'll release test33 soon.
On Sat, 31 Jul 2004, Timo Sirainen wrote:
So looks like it's leaking dovecot.index files. Found and fixed, I'll release test33 soon.
Doh... That might solve a weird out-of-vnodes related system crash I have been trying to track down last two nights.
I actually can go to sleep now. :)
participants (3)
-
Jens Gutzeit
-
Timo Sirainen
-
Wouter Van Hemel