userli icon indicating copy to clipboard operation
userli copied to clipboard

Dovecot starts multiple php processes which results in OOM killer

Open kidhab opened this issue 3 years ago • 5 comments

We run a low traffic mail server with around 100 mailboxes. We repeatedly (about once a week) experience the following situation: The IMAP login process/ checkpassword starts a lot of php processes (about 100) which results in a very high system load. After the kernel kills the php process due to an out of memory situation the Dovecot process isn't available any more.

According to the monitoring the overall memory use is never a problem. We tried to limit php's memory_limit to a very low value like 16 M but this didn't prevent the situation. As a workaround systemd is now restarting Dovecot in this situations (Restart=on-failure).

I don't expect our setup to be special in any way - so I'm curious if you encounter similiar behaviour.

kidhab avatar Jun 07 '22 12:06 kidhab

Hey, thanks for creating this issue. What OS are you using? We've never experienced an issue like this on Debian stable.

t2d avatar Jun 08 '22 04:06 t2d

Same here: Userli is running on Debian Bullseye. Do you use any special PHP or Dovecot settings that may incluence behaviour like this?

kidhab avatar Jun 09 '22 17:06 kidhab

Are you using https://github.com/systemli/ansible-role-userli/ ?

t2d avatar Jun 09 '22 17:06 t2d

We installed Userli without the role - just followed your well written documentation.

kidhab avatar Jun 09 '22 18:06 kidhab

But you can find all the config there. No idea why this problem occurs for you. Sorry

t2d avatar Jun 09 '22 18:06 t2d

@kidhab do you still experience this problem?

doobry-systemli avatar Nov 03 '22 23:11 doobry-systemli

Looking at our monitoring there were no anomalies for some weeks now and we didn't change anything.

kidhab avatar Nov 07 '22 17:11 kidhab