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. Discuss
  3. RAM usage is lower after a server reboot

RAM usage is lower after a server reboot

Scheduled Pinned Locked Moved Discuss
5 Posts 3 Posters 1.1k Views 2 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.
  • humptydumptyH Offline
    humptydumptyH Offline
    humptydumpty
    wrote on last edited by
    #1

    After installing a bunch of apps in the recent weeks, my server has been idling at 3GB RAM. I got a server notification for a reboot last night and I did that around the time you can see where the server RAM dips down to around 1.5GB. Since the reboot, the server has been idling at 2GB instead. Anyone else experienced something similar?

    I tried to check the logs (app, backup, etc.) and I couldn't go back more than a few hours for some or couple of days for other logs.

    The CPU usage has been steady and consistent this whole time.

    RAM-7days.png

    RAM-24hrs.png

    RAM-6hrs.png

    humptydumptyH 1 Reply Last reply
    1
    • humptydumptyH humptydumpty

      After installing a bunch of apps in the recent weeks, my server has been idling at 3GB RAM. I got a server notification for a reboot last night and I did that around the time you can see where the server RAM dips down to around 1.5GB. Since the reboot, the server has been idling at 2GB instead. Anyone else experienced something similar?

      I tried to check the logs (app, backup, etc.) and I couldn't go back more than a few hours for some or couple of days for other logs.

      The CPU usage has been steady and consistent this whole time.

      RAM-7days.png

      RAM-24hrs.png

      RAM-6hrs.png

      humptydumptyH Offline
      humptydumptyH Offline
      humptydumpty
      wrote on last edited by
      #2

      @girish On an unrelated note, I've been compressing images before uploading to the forum. For future uploads, should I keep doing that or does NodeBB have this functionality built-in?

      girishG 1 Reply Last reply
      0
      • humptydumptyH humptydumpty

        @girish On an unrelated note, I've been compressing images before uploading to the forum. For future uploads, should I keep doing that or does NodeBB have this functionality built-in?

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

        @humptydumpty The forum will compress it. I think it doesn't let you upload very large images, but otherwise NodeBB would scale it down as required.

        As for the original question, I think this is expected. If you leave a program running, it will consume memory over time. This is not just because of memory leaks but the app simply thinks there is no reason to actively free memory. Ruby/Python/Node apps are all guilty of this. In fact, it's one of the reasons to run apps in containers. If you give these frameworks/languages lot of memory, they just hog a lot of memory even when idling. (Essentially most dynamic languages will start with a "heap" and keep allocating till it hits the limit and won't gc them unless they get a memory allocation failure).

        1 Reply Last reply
        4
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          To add to this, the linux kernel also "buffers/caches" (free -m) a lot when no other apps are using memory. This will appear as used in the graphs but apps can always claim this memory when they want it. See also https://serverfault.com/questions/85470/meaning-of-the-buffers-cache-line-in-the-output-of-free

          1 Reply Last reply
          4
          • scookeS Offline
            scookeS Offline
            scooke
            wrote on last edited by
            #5

            I have the same, and way more noticeable than previous restarts. You're not alone.

            A life lived in fear is a life half-lived

            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