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

    1Gb of RAM min?

    Vaultwarden
    5
    12
    132
    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.
    • potemkin_ai
      potemkin_ai last edited by

      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?

      humptydumpty 1 Reply Last reply Reply Quote 1
      • humptydumpty
        humptydumpty @potemkin_ai last edited by

        @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 Reply Quote 2
        • girish
          girish Staff last edited by

          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_ai 1 Reply Last reply Reply Quote 2
          • potemkin_ai
            potemkin_ai @girish last edited by

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

            nebulon 1 Reply Last reply Reply Quote 0
            • nebulon
              nebulon Staff @potemkin_ai last edited by

              @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_ai 1 Reply Last reply Reply Quote 3
              • potemkin_ai
                potemkin_ai @nebulon last edited by

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

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

                  @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_ai 1 Reply Last reply Reply Quote 1
                  • potemkin_ai
                    potemkin_ai @girish last edited by

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

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

                      @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_ai 1 Reply Last reply Reply Quote 0
                      • potemkin_ai
                        potemkin_ai @girish last edited by

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

                        jdaviescoates 1 Reply Last reply Reply Quote 0
                        • jdaviescoates
                          jdaviescoates @potemkin_ai last edited by

                          @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_ai 1 Reply Last reply Reply Quote 1
                          • potemkin_ai
                            potemkin_ai @jdaviescoates last edited by

                            @jdaviescoates lovely ♥

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