OOM in Dovecot 2.2.13 imap

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Tue Jun 24 06:14:58 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 23 Jun 2014, Bernhard Schmidt wrote:
> On 23.06.2014 16:38, Steffen Kaiser wrote:
>> On Mon, 23 Jun 2014, Bernhard Schmidt wrote:
>>> 
>>> we run Dovecot 2.2.13 on Debian Wheezy with a couple thousand mailboxes.
>>> We have two users that repeatedly trigger an OOM condition with IMAP.
>> 
>> Do those users have mailboxes extra ordinary large or is one message of
>> them extra ordinary large?
>
> No, not particularly. 8000 Mails (2GB total), the largest mail is 20MB.
>> 
>> Jun 23 12:53:21 lxmhs74 dovecot: imap(USER): Fatal:
>> pool_system_realloc(268435456): Out of memory
>> 
>> this number likely mean 256MB, is one of your memory limits that large?
>> You can see all limits with dovecot -a (note the "-a" instead of "-n").
>> Memory limits are vsz_limit, IMHO.
>
> No memory limits outside of dovecot. In dovecot there are the default 
> settings
>
> default_vsz_limit = 256 M
> service imap {
>  [...]
>  vsz_limit = 18446744073709551615 B
> }

Do you run Dovecot in High-Peformance mode or Security mode?

> Since the largest IMAP processes I can observe are at around 70MB VIRT (43MB 
> RSS) I suspect vsz_limit is doing what it is supposed to do (limit memory 
> consumption of a run-away process) and something went wrong in that mailbox. 
> Thus the backtrace, hoping for someone to confirm.

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBU6kXYnz1H7kL/d9rAQIxWggAn9OnpE8oqc9tWGZIkbRYsRiBeXZNETFy
CNBYmEQxhP2aYHd1zqFsdrpuve4ZrgBL56AE9Vv9HnZcnrD9yin1aFgN2efmAiBX
J7j8o5cpGtZRfBmTJzNXm5+ZT6rSlZTYGfkuooQHw3xSZhlTCMCkUlOFbUXTgbHW
Dm6jrZo2Obu2rRgd6QazynD1/uJwiNQV8BEGELTJyHFtegSOjyv575SfuRmgIrIT
DeYJm/m6RcYI4cUdQUqm6xS6Q+siHAFx2sDIOmKBHKKW8GY4uYLOtvRJIJ5pHG02
p9ncYIRi5IRUwIMgrOYU47zPYFIrwFVsOGPcSoyCavYBr9tK33sEqw==
=ML0o
-----END PGP SIGNATURE-----


More information about the dovecot mailing list