[Dovecot] lmtp: Error: mmap failed with file ... dovecot.index.cache: Cannot allocate memory
Hello,
I have a mailbox with an ungodly number of small messages in it. When new messages are delivered lmtp kicks up an error like the one below. I tried raising the vsz_limit for lmtp but that didn't see to help. Any ideas (besides deleting 400k messages)? Thanks!
dovecot: lmtp(6068, user@example.com): Error: mmap() failed with file /home/vmail/domains/example.com/user/Maildir/dovecot.index.cache: Cannot allocate memory
# ls -lah dovecot.index.cache -rw------- 1 vmail vmail 128M Jul 29 20:16 dovecot.index.cache
# doveadm mailbox status -u user@example.com all inbox INBOX messages=434118 recent=59848 uidnext=434119 uidvalidity=1293568548 unseen=432625 highestmodseq=14023 vsize=1329486283 guid=f8d48232244a1a4dfe2e0000cb0ad7e0
# doveconf -n ... default_vsz_limit = 256 M service lmtp { inet_listener lmtp { port = 24 } vsz_limit = 256 M }
On 10.8.2012, at 20.05, David Jonas wrote:
I have a mailbox with an ungodly number of small messages in it. When new messages are delivered lmtp kicks up an error like the one below. I tried raising the vsz_limit for lmtp but that didn't see to help.
That should help.
# ls -lah dovecot.index.cache -rw------- 1 vmail vmail 128M Jul 29 20:16 dovecot.index.cache
default_vsz_limit = 256 M service lmtp { inet_listener lmtp { port = 24 } vsz_limit = 256 M }
Did you try higher than 256M? There might be some memory temporarily wasted which causes it to go over.
On Fri Aug 10 10:10:21 2012, Timo Sirainen wrote:
On 10.8.2012, at 20.05, David Jonas wrote:
I have a mailbox with an ungodly number of small messages in it. When new messages are delivered lmtp kicks up an error like the one below. I tried raising the vsz_limit for lmtp but that didn't see to help.
That should help.
# ls -lah dovecot.index.cache -rw------- 1 vmail vmail 128M Jul 29 20:16 dovecot.index.cache
default_vsz_limit = 256 M service lmtp { inet_listener lmtp { port = 24 } vsz_limit = 256 M }
Did you try higher than 256M? There might be some memory temporarily wasted which causes it to go over.
I haven't tried higher. I'll make the change now though. Is there a way to test it besides delivering a new message?
On 8/10/12 10:10 AM, Timo Sirainen wrote:
On 10.8.2012, at 20.05, David Jonas wrote:
I have a mailbox with an ungodly number of small messages in it. When new messages are delivered lmtp kicks up an error like the one below. I tried raising the vsz_limit for lmtp but that didn't see to help. That should help.
# ls -lah dovecot.index.cache -rw------- 1 vmail vmail 128M Jul 29 20:16 dovecot.index.cache
default_vsz_limit = 256 M service lmtp { inet_listener lmtp { port = 24 } vsz_limit = 256 M } Did you try higher than 256M? There might be some memory temporarily wasted which causes it to go over.
service lmtp { vsz_limit = 320 M }
Yep. That seems to cover it. Delivered a message with lmtp and no error in the logs. dovecot.index.cache timestamp updated too.
Thanks! Guess I should have tried something absurdly high before emailing, just to see if that was it.
participants (2)
-
David Jonas
-
Timo Sirainen