I’m getting such “Out of memory” errors logged by dovecot repeatedly - how do I fix it? The server has 16 GB RAM and all processes use only around 2.5 GB RAM.
> # free -m
> total used free shared buff/cache available
> Mem: 15331 2571 9279 18 3482 12759
> Swap: 4095 0 4095
Oct 7 08:32:06 a232a9a7fb72 dovecot: indexer-worker(my-email@example.com)<290><mGEHHYYDxmr1AAAAxM2cFw:FZ/lJoYDxmoiAQAAxM2cFw>: Error: Mailbox INBOX: mmap(size=112547360) failed with file /var/vmail_index/my-email@example.com/.INBOX/dovecot.index.cache: Out of memory
Oct 7 09:13:12 a232a9a7fb72 dovecot: indexer-worker(my-email@example.com)<1906><yLzPLScNxmpsBwAAxM2cFw:a/HuNycNxmpyBwAAxM2cFw>: Error: Mailbox INBOX: mmap(size=112611616) failed with file /var/vmail_index/my-email@example.com/.INBOX/dovecot.index.cache: Out of memory
Oct 7 09:29:14 a232a9a7fb72 dovecot: indexer-worker(my-email@example.com)<2616><+PDRK+kQxmoICQAAxM2cFw:aZJANekQxmo4CgAAxM2cFw>: Error: Mailbox INBOX: mmap(size=112614708) failed with file /var/vmail_index/my-email@example.com/.INBOX/dovecot.index.cache: Out of memory
Oct 7 09:29:36 a232a9a7fb72 dovecot: indexer-worker(my-email@example.com)<2616><mH0HOP8QxmoICQAAxM2cFw:CNXVBgARxmo4CgAAxM2cFw>: Error: Mailbox INBOX: mmap(size=112617212) failed with file /var/vmail_index/my-email@example.com/.INBOX/dovecot.index.cache: Out of memory
Oct 7 09:29:40 a232a9a7fb72 dovecot: indexer-worker(my-email@example.com)<2616><aPVsKwMRxmoICQAAxM2cFw:uK4VMwMRxmo4CgAAxM2cFw>: Error: Mailbox INBOX: mmap(size=112619452) failed with file /var/vmail_index/my-email@example.com/.INBOX/dovecot.index.cache: Out of memory
Oct 7 10:09:50 a232a9a7fb72 dovecot: indexer-worker(my-email@example.com)<4463><uAk7Em4axmowDgAAxM2cFw:PfBXHW4axmpvEQAAxM2cFw>: Error: Mailbox INBOX: mmap(size=112621192) failed with file /var/vmail_index/my-email@example.com/.INBOX/dovecot.index.cache: Out of memory
Oct 7 10:29:17 a232a9a7fb72 dovecot: indexer-worker(my-email@example.com)<5411><uD+KLfwexmoSEwAAxM2cFw:H40eOfwexmojFQAAxM2cFw>: Error: Mailbox INBOX: mmap(size=112622572) failed with file /var/vmail_index/my-email@example.com/.INBOX/dovecot.index.cache: Out of memory
Oct 7 10:29:52 a232a9a7fb72 dovecot: indexer-worker(my-email@example.com)<5411><VfdSFyAfxmopFQAAxM2cFw:ALjgGyAfxmojFQAAxM2cFw>: Error: Mailbox INBOX: mmap(size=112625392) failed with file /var/vmail_index/my-email@example.com/.INBOX/dovecot.index.cache: Out of memory
Oct 7 10:29:52 a232a9a7fb72 dovecot: indexer-worker(my-email@example.com)<5411><VfdSFyAfxmopFQAAxM2cFw:wCRGKiAfxmojFQAAxM2cFw>: Error: Mailbox INBOX: mmap(size=112625392) failed with file /var/vmail_index/my-email@example.com/.INBOX/dovecot.index.cache: Out of memory
Oct 7 10:33:12 a232a9a7fb72 dovecot: indexer-worker(my-email@example.com)<5598><kMiFMOcfxmoSEwAAxM2cFw:q14ZO+cfxmreFQAAxM2cFw>: Error: Mailbox INBOX: mmap(size=112626948) failed with file /var/vmail_index/my-email@example.com/.INBOX/dovecot.index.cache: Out of memory