Frequent "/mail was restarted (OOM)" on several servers
-
-
@jdaviescoates said in Frequent "/mail was restarted (OOM)" on several servers:
Just having a look and I think perhaps in my case it's just that my VPS is constantly running close to the 8GB RAM it's got.
I guess I either need to uninstall some unused apps or increase the power of my server...
Actually, that wasn't it.
I had 8GB RAM and was running at a fairly constant 7GB RAM, so I figured a little spike somewhere might make the server run out of RAM and perhaps that was why Mail (which I'm barely using - I've only got it enabled on 4 domains with a total of 8 barely used mailboxes) kept running out of memory.
But I've since upped my VPS to 16GB and it's still happening.
@Staff any ideas as to why a barely used Mail service has been having fairly regular memory crashes (twice a week) since 25 April? Feels to me like perhaps some update somewhere on or before 25 April has caused a memory leak or something.
Or perhaps the 512MB default just isn't enough? Although whenever I actually look in services it never looks like it's anywhere near to running out of memory:
So why does it fall over twice a week?
-
@jdaviescoates the mail container also handles outbound emails, not just mailboxes as such. Do you happen to send out lots of mails from apps? Also is the memory consumption rather stable for some time or linearly growing?
-
@nebulon said in Frequent "/mail was restarted (OOM)" on several servers:
Do you happen to send out lots of mails from apps?
No, I don't. Well, I mean Wordfence sends out alters from various WordPress sites fairly regularly. But it looks like less than 100 emails have been delivered across my whole Cloudron in the last 2 days. So not many.
@nebulon said in Frequent "/mail was restarted (OOM)" on several servers:
Also is the memory consumption rather stable for some time or linearly growing?
I don't keep that much of a close eye on how much memory is being used, but as I mentioned above, every time I do happen to look it's hardly using any memory, so I'd say mostly a stable low amount and then occasionally (twice a week since 25 April) there must be something causing a spike. No obvious clues in the Email event log.
-
@nebulon as I said, this happens without any emails being sent, it seems to be all attempts from spammers in a short period of time: https://paste.cloudron.io/okumavovil.coffeescript - eventually the mail service runs out of memory, restarts and a day later they try again. And this is on multiple cloudrons, happy to share more logs/access
-
@nebulon I could enable ssh on the cloudrons in question and you could take a look, should I do that and write down some timestamps of the restarts? maybe you see something that I don't, email is not my strongsuit and there is a lot happening that I don't know
-
This is still happening to me. It would appear that receiving a single email 8 minutes ago to one of the 8 mailboxes (most of which have never sent nor received any mail) caused mail with 512MB (on a server with over 8GB spare RAM) to run out of memory. It really seems like there must be something wrong somewhere. I'll up Mail to 1GB now, but this is making me worried about actually starting to properly use Cloudron mail if it keeps falling over with basically no use
-
@jdaviescoates it started happening again here as well and I've already sent a message to support with access to the corresponding servers. It also happened on one server which has 768MB reserved for the mail service with almost no traffic, so the problem is probably somewhere else.