[Dovecot] index file vs. memory

Timo Sirainen tss at iki.fi
Mon Feb 20 19:01:24 EET 2006


On Fri, 2006-02-17 at 22:55 +0100, Gunter Ohrner wrote:
> Am Freitag, 17. Februar 2006 20:49, schrieb Marten Lehmann:
> > time. Is the index file kept in memory as long as an imap-connection
> > exists, or is it closed as soon as a certain read or write command has
> > finished?
> 
> That imap process' memory usage will grow and shrink over time, but I 
> observed (on my small single-user box) imap processes consuming several 
> dozend MB virtual memory sitting around for extended periods of time...
> 
> No idea if dovecot can somehow be taught to free it up again as soon as 
> possible or if it does not seem to be needed at the moment any more...

I've also noticed that after several days Dovecot eats much more memory
than it should. So I suppose there's a leak somewhere. I should try to
debug this some day, but since my main mails are in Solaris server, I
can't use Valgrind there and I can't really think of any better ways to
debug it easily..

You could also check if it's really heap that's eating the memory or if
it's just mmaped index files. If you're running Linux, could you do
cat /proc/<imap process pid>/maps and show me what it says?

-------------- 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/20060220/591f0995/attachment.pgp


More information about the dovecot mailing list