Description
Hey,
first of all - we recently swapped from mailhog to mailpit and are pretty happy with it, thank you for your work!
Sadly we are running into an oom kill error.
We deploy mailpit to our k8s cluster while using the official latest mailpit docker image.
The deployment isn't doing anything fancy, simply mounting a persistent storage for the database file and setting up ingress.
We are able to receive simple mails without any issues but as soon as we include some attachments the application crashes with status code 137 (oom kill).
terminated
Reason:Reason: OOMKilled - exit code: 137
To be a bit more precise: the attachments are mostly images and pdf's ranging from 1mb to 5mb up to 5 attachments per mail.
The mails are getting sent through our laravel backend.
After encountering it the first time i tried to raise the RAM limits for the container.
First from 500mb to 1gb following with a raise to 2gb.
Even with 2gb of RAM the container kept running out of memory when receiving the mails mentioned above.
When idling it pretty much uses no memory at all.
After crashing mailpit is able to display the mail and also knows about the attachments and its sizes but can't display the image or document itself.
Mailpit does also crash when clicking these broken attachments, after that the attachments are usually healthy again which is even more baffling to me.
We use the following environment variables:
- name: MP_MAX_MESSAGES
value: '200'
- name: MP_SMTP_AUTH_ACCEPT_ANY
value: '1'
- name: MP_SMTP_AUTH_ALLOW_INSECURE
value: '1'
- name: MP_DATABASE
value: '/data/mailpit_local_database.db'
- name: MP_VERBOSE
value: 'false'
Do you guys see what im missing? Im pretty much clueless at this point.
Thanks!