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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Huge memory spikes

    Support
    cpu memory
    2
    5
    288
    Loading More Posts
    • 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.
    • robi
      robi last edited by girish

      Something is regularly causing huge memory spikes. Since all apps have limits this shouldn't be possible.
      Here's the 6h graphs:

      01209e45-ac3a-4c6d-8efc-9378a824aaaf-image.png

      CPU correlates
      2f3c3405-e21a-49c3-ad29-1527353d1933-image.png

      I don't see anything other than occasional janitor cleanup that lasts on the order of seconds, not minutes, in box log (8MB)

      What else?

      Here's the 24h graphs:
      26d6ff1b-7d67-4014-9375-7f84c3fd9a5c-image.png
      24d4174f-860a-48d2-99d6-da1b47cf66b4-image.png

      Life of Advanced Technology

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @robi last edited by

        @robi The only CPU/memory intensive thing the box code does is backups. Do the spikes match your backup interval configuration?

        robi 1 Reply Last reply Reply Quote 0
        • robi
          robi @girish last edited by

          @girish No, that is why these are concerning. My backups are weekly.

          This is happening on the demo cloudron as well.

          Life of Advanced Technology

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @robi last edited by

            @robi said in Huge memory spikes:

            This is happening on the demo cloudron as well.

            It seems that they are somehow related to OOM in the demo cloudron atleast:

            # grep OOM /home/yellowtent/platformdata/logs/box.log | wc -l
            3572
            

            Which now reminds me that I think your server is also on ssdnodes as well right ? They have some strange CPU/memory sharing going on which makes all that I/O unreliable. I have been meaning to move the demo out of them at some point. If you just try to uninstall an app, you will see how slow it is despite it having plenty of RAM (48GB overall!) and it's doing nothing.

            robi 1 Reply Last reply Reply Quote 1
            • robi
              robi @girish last edited by

              @girish That's not it. You have OOMs because people install all sorts of apps and try to abuse the system, like WP and trying out large plugins.

              My system has 0 OOMs. None.

              Mine also has enough of IO as I asked them to limit the number of new customers on the host system.

              # dd if=/dev/zero of=/tmp/test1.img bs=1G count=1 oflag=dsync ; rm /tmp/test1.img
              1+0 records in
              1+0 records out
              1073741824 bytes (1.1 GB, 1.0 GiB) copied, 5.50861 s, 195 MB/s
              

              Doesn't explain 48GB mem spikes.

              This only seems to be happening on 20.04 Cloudrons, not 18.04.

              Btw, the main issue I think you're having is the choice of that NY datacenter, it's networking isn't great, they seem to allow burst traffic but then quickly throttle down or experience congestion.

              Seattle has been way better for me.

              Life of Advanced Technology

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB