Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Frequent "/mail was restarted (OOM)" on several servers

Frequent "/mail was restarted (OOM)" on several servers

Scheduled Pinned Locked Moved Solved Support
mailoom
19 Posts 7 Posters 2.3k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #7

      To increase memory for mail, you have to go to Services -> Mail -> increase the limit. Changing memory for rainloop/roundcube/sogo won't help since they are just frontends to the mail server.

      1 Reply Last reply
      3
      • fbartelsF fbartels

        @msbt is full text search enabled for these mail apps?

        M Offline
        M Offline
        msbt
        App Dev
        wrote on last edited by msbt
        #8

        @fbartels no fts, on some servers there aren't even any mailboxes

        @girish I know that, but since I'm not using mail in most of those cases, I would rather want to find out what spam-methods create the memory spike instead of allowing more attempts 😉

        1 Reply Last reply
        1
        • jdaviescoatesJ jdaviescoates

          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...

          jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by
          #9

          @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:

          hardly_using_any.png

          So why does it fall over twice a week?

          I use Cloudron with Gandi & Hetzner

          nebulonN 1 Reply Last reply
          1
          • jdaviescoatesJ jdaviescoates

            @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:

            hardly_using_any.png

            So why does it fall over twice a week?

            nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #10

            @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?

            jdaviescoatesJ M 2 Replies Last reply
            0
            • nebulonN nebulon

              @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?

              jdaviescoatesJ Offline
              jdaviescoatesJ Offline
              jdaviescoates
              wrote on last edited by
              #11

              @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.

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply
              0
              • nebulonN nebulon

                @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?

                M Offline
                M Offline
                msbt
                App Dev
                wrote on last edited by
                #12

                @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

                nebulonN 1 Reply Last reply
                1
                • M msbt

                  @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

                  nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #13

                  @msbt not a real fix, but at least the IP shown in those logs are always the same, so may be worth putting that in the blocklist. Of course the OOM should still not happening. Not sure how to debug this further.

                  M 1 Reply Last reply
                  0
                  • nebulonN nebulon

                    @msbt not a real fix, but at least the IP shown in those logs are always the same, so may be worth putting that in the blocklist. Of course the OOM should still not happening. Not sure how to debug this further.

                    M Offline
                    M Offline
                    msbt
                    App Dev
                    wrote on last edited by
                    #14

                    @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 😉

                    girishG 1 Reply Last reply
                    1
                    • M msbt

                      @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 😉

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #15

                      @msbt yes, sure. can you please drop a mail on support@cloudron.io ?

                      M 1 Reply Last reply
                      0
                      • girishG girish

                        @msbt yes, sure. can you please drop a mail on support@cloudron.io ?

                        M Offline
                        M Offline
                        msbt
                        App Dev
                        wrote on last edited by
                        #16

                        @girish sure thing, will do when they pop up the next time. For whatever reason the OOMs stopped since Tuesday, I haven't changed anything on any machine... 🙄

                        1 Reply Last reply
                        1
                        • jdaviescoatesJ Offline
                          jdaviescoatesJ Offline
                          jdaviescoates
                          wrote on last edited by
                          #17

                          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 😞

                          I use Cloudron with Gandi & Hetzner

                          M 1 Reply Last reply
                          1
                          • jdaviescoatesJ jdaviescoates

                            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 😞

                            M Offline
                            M Offline
                            msbt
                            App Dev
                            wrote on last edited by
                            #18

                            @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.

                            girishG 1 Reply Last reply
                            2
                            • M msbt

                              @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.

                              girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote on last edited by
                              #19

                              @msbt yes, thanks for reaching out, will take a look.

                              1 Reply Last reply
                              1
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Bookmarks
                                • Search