1

Topic: Overload IMAP in server with 4 accounts one domain on NVME disk

- iRedMail version 1.6.0 MARIADB edition.
- Deployed with idownloadable installer
- Ubuntu 20.04 TLS
- MariaDB
- Nginx

I am testing the capabilities and possibilities of iRedmail on a server to which I have moved a domain with 4 email accounts, and a traffic of about 5 to 10 incoming messages per minute.

I find that the load is tremendous.

It is a machine with 10GB of ram, 6 cpus, nvme disks and I cannot imagine such an overload.

I have tried to review the parameters or recommendations but I do not see an explanation for such a high load.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Overload IMAP in server with 4 accounts one domain on NVME disk

After some issue with one big account (> 200.000 messages)  I've got some errors


May 30 09:09:39 smtp dovecot: imap(email@domain.tld)<14362><SbP2AzfgwrhbeeIy>: Error: mmap(size=273314452) failed with file /var/vmail/vmail1/domain.tld/s/i/s/email-2022.05.27.06.28.08//Maildir/dovecot.index.cache: Cannot allocate memory

I've changed according dovecot wiki

mail_cache_max_size = 768M                                                                                              
default_vsz_limit = 3072M

```

and update vsz_limt on service imap

service imap {
  # Most of the memory goes to mmap()ing files. You may need to increase this                                       
  # limit if you have huge mailboxes.                                                                               
  vsz_limit = $default_vsz_limit

  # Max. number of IMAP processes (connections)                                                                     
  #process_limit = 1024                                                                                             
}

But problems persist.

- High load
- Cannot allocate memory

After changing values one problem disappears.

May 30 09:16:01 smtp dovecot: imap(sistemas@castris.com)<14773><XhjGGjfg2LhbeeIy>: Fatal: master: service(imap): child 14773 returned error 83 (Out of memory (service imap { vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1 environment to get core dump)