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. Vaultwarden
  3. 1Gb of RAM min?

1Gb of RAM min?

Scheduled Pinned Locked Moved Vaultwarden
12 Posts 5 Posters 2.2k Views 5 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.
  • potemkin_aiP Offline
    potemkin_aiP Offline
    potemkin_ai
    wrote on last edited by
    #1

    Hello! I've tried to optimize the memory usage recently and realized that the Rust app requires 1Gb of RAM minimum - is that really true?

    As per my understanding, 256Mb shall be more than enough, or am I missing something?

    humptydumptyH 1 Reply Last reply
    1
    • potemkin_aiP potemkin_ai

      Hello! I've tried to optimize the memory usage recently and realized that the Rust app requires 1Gb of RAM minimum - is that really true?

      As per my understanding, 256Mb shall be more than enough, or am I missing something?

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

      @potemkin_ai my app is showing less than 200mb RAM usage at all times. Maybe it needs more when importing/exporting or other heavy tasks. This is for 3 users.

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

        Sometimes the app package needs a lot more ram only because the initialization and updates take more memory (like db migrations and such). When it runs normally, it doesn't need as much.

        potemkin_aiP 1 Reply Last reply
        2
        • girishG girish

          Sometimes the app package needs a lot more ram only because the initialization and updates take more memory (like db migrations and such). When it runs normally, it doesn't need as much.

          potemkin_aiP Offline
          potemkin_aiP Offline
          potemkin_ai
          wrote on last edited by
          #4

          @girish could it be left to the cloudron admin please?

          I mean - I'm just one user, I can hardly imagine the case when the Rust app will consume even 200Mb, leave alone 1Gb.

          If the memory settings is too low, I will see the app crashing in the notifications and will increase it as required.

          nebulonN 1 Reply Last reply
          0
          • potemkin_aiP potemkin_ai

            @girish could it be left to the cloudron admin please?

            I mean - I'm just one user, I can hardly imagine the case when the Rust app will consume even 200Mb, leave alone 1Gb.

            If the memory settings is too low, I will see the app crashing in the notifications and will increase it as required.

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

            @potemkin_ai this is really just the maximum limit for an app, the setting does not mean that the memory is allocated or reserved for the app. As far as I remember the app does need more memory to initially start up, so we had to raise that minimum limit.

            I think the real fix here is to implement memory burst support, where that limit can be exceeded for a short amount of time. This also will help with some apps during data import/export.

            potemkin_aiP 1 Reply Last reply
            3
            • nebulonN nebulon

              @potemkin_ai this is really just the maximum limit for an app, the setting does not mean that the memory is allocated or reserved for the app. As far as I remember the app does need more memory to initially start up, so we had to raise that minimum limit.

              I think the real fix here is to implement memory burst support, where that limit can be exceeded for a short amount of time. This also will help with some apps during data import/export.

              potemkin_aiP Offline
              potemkin_aiP Offline
              potemkin_ai
              wrote on last edited by
              #6

              @nebulon burst would be ideal, but I guess we are limited by a Docker Swarm architecture...

              On the minimal - I have 512Mb on resources intensive Ghost, but vaultwarden and invoiceninja are 1gb... that feels like not quite consistent? Or am I missing something?

              girishG 1 Reply Last reply
              0
              • potemkin_aiP potemkin_ai

                @nebulon burst would be ideal, but I guess we are limited by a Docker Swarm architecture...

                On the minimal - I have 512Mb on resources intensive Ghost, but vaultwarden and invoiceninja are 1gb... that feels like not quite consistent? Or am I missing something?

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

                @potemkin_ai It depends entirely on what the app does on startup and update. There's no pattern here based on language/framework. For example, an app could download the gelocation database on startup and so might need more memory. The memory limits are just set by trial and error and not scientific.

                potemkin_aiP 1 Reply Last reply
                1
                • girishG girish

                  @potemkin_ai It depends entirely on what the app does on startup and update. There's no pattern here based on language/framework. For example, an app could download the gelocation database on startup and so might need more memory. The memory limits are just set by trial and error and not scientific.

                  potemkin_aiP Offline
                  potemkin_aiP Offline
                  potemkin_ai
                  wrote on last edited by
                  #8

                  @girish I see, thank you.
                  Would it be correct to say, that Cloudron won't let me to install the apps if my overall RAM size is not enough or those settings really doesn't affect that much?

                  girishG 1 Reply Last reply
                  0
                  • potemkin_aiP potemkin_ai

                    @girish I see, thank you.
                    Would it be correct to say, that Cloudron won't let me to install the apps if my overall RAM size is not enough or those settings really doesn't affect that much?

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

                    @potemkin_ai we show a warning right now if the server is overloaded but that too is not scientific , it's just based on adding up memory limits and comparing how much the server has . But overall, i wouldn't think of optimizing these memory limits, it's just a safety hook in case apps leak memory and prevent them from bringing down the server .

                    potemkin_aiP 1 Reply Last reply
                    0
                    • girishG girish

                      @potemkin_ai we show a warning right now if the server is overloaded but that too is not scientific , it's just based on adding up memory limits and comparing how much the server has . But overall, i wouldn't think of optimizing these memory limits, it's just a safety hook in case apps leak memory and prevent them from bringing down the server .

                      potemkin_aiP Offline
                      potemkin_aiP Offline
                      potemkin_ai
                      wrote on last edited by
                      #10

                      @girish I guess I've been limited to install some app, because the minimum requirements for the RAM was not met.

                      If that logic is still in place, probably, it would be nice to have some kind of 'I understand what I'm doing' checkbox to work this around?

                      jdaviescoatesJ 1 Reply Last reply
                      0
                      • potemkin_aiP potemkin_ai

                        @girish I guess I've been limited to install some app, because the minimum requirements for the RAM was not met.

                        If that logic is still in place, probably, it would be nice to have some kind of 'I understand what I'm doing' checkbox to work this around?

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

                        @potemkin_ai said in 1Gb of RAM min?:

                        it would be nice to have some kind of 'I understand what I'm doing' checkbox to work this around?

                        There is already such an option 🙂

                        I use Cloudron with Gandi & Hetzner

                        potemkin_aiP 1 Reply Last reply
                        1
                        • jdaviescoatesJ jdaviescoates

                          @potemkin_ai said in 1Gb of RAM min?:

                          it would be nice to have some kind of 'I understand what I'm doing' checkbox to work this around?

                          There is already such an option 🙂

                          potemkin_aiP Offline
                          potemkin_aiP Offline
                          potemkin_ai
                          wrote on last edited by
                          #12

                          @jdaviescoates lovely ♥

                          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