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

    Solved Memory requirements need to be raised (?)

    Weblate
    5
    12
    450
    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.
    • fbartels
      fbartels App Dev last edited by

      Hi,

      I made a test installation of the weblate app on a new cloudron installation today.

      Our current weblate installation (which is sadly still at 2.4) is currently running alongside an Nginx installation in a 2gb ram vps. The cloudron app already says it requires at least 2gb of ram, but even it being just installed I was observing out of memory messages in my kernel log until I raised the apps memory limit to 4gb.

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

        I had a similar experience. I tried to install this on my 2GB test instances and it ran out of memory. I had to increase the VPS itself to 4GB to get it running.

        1 Reply Last reply Reply Quote 0
        • scooke
          scooke @fbartels last edited by scooke

          @fbartels There is this note on the docs site that states Weblate itself minimally needs 2Gb of ram and 2 cores, and I guess that doesn't take into consideration what RAM is needed for other processes on the server! So even though it is a django-based app (right?) it needs a fair bit of resources, : https://docs.weblate.org/no/latest/admin/install/venv-debian.html#:~:text=Weblate should run on all,1 GB of storage space.

          A life lived in fear is a life half-lived

          fbartels 1 Reply Last reply Reply Quote 0
          • fbartels
            fbartels App Dev @scooke last edited by fbartels

            @scooke maybe that was a bit unclear in my previous statement. Our current installation is on a 4gb vps. My first attempt was on a new vps with two cores and 4gb of ram, but here (even though it was "only" cloudron and the weblate app) weblate did not even start up since it was swapping and running out if memory.

            My next attempt was on a vps with 8gb of ram and four cores. Here I saw messages of cgroups running out of memory (even though I imported only a small translation project, no addons yet). Raising the app memory limit (which is just the Django application) to 4GB made these messages go away. But even there when importing a bigger test project lead to a mail that weblate had run out of memory and the project did not import completely.

            The one obvious tuning setting I see in the weblate.ini (which seems to be almost completely the weblate example config) is https://git.cloudron.io/cloudron/weblate-app/-/blob/master/weblate.ini#L22, but even here our current installation uses 12 instead of the current 8.

            scooke 1 Reply Last reply Reply Quote 1
            • scooke
              scooke @fbartels last edited by

              @fbartels Hm, that is a sobering report. Thanks for the details of the setup you were using. I'll have to proceed carefully with my own tests.

              A life lived in fear is a life half-lived

              1 Reply Last reply Reply Quote 1
              • nebulon
                nebulon Staff last edited by

                This is good feedback though, looks like we have to bump the minimum requirements even further.

                Regarding the worker count, I guess we have to add some ability to make persistent changes to the configs.

                fbartels 1 Reply Last reply Reply Quote 0
                • fbartels
                  fbartels App Dev @nebulon last edited by

                  @nebulon said in Memory requirements need to be raised (?):

                  I guess we have to add some ability to make persistent changes to the configs.

                  Yes, that would be nice. This part seems relevant: https://docs.weblate.org/en/latest/admin/install/docker.html#container-settings

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

                    Right, I've put a TODO already for those in the package https://git.cloudron.io/cloudron/weblate-app/-/blob/master/start.sh#L135 I just wasn't sure if it should be set by the admin or somehow based on cpu/memory counts.

                    1 Reply Last reply Reply Quote 1
                    • nebulon
                      nebulon Staff last edited by

                      Both issues are addressed with the new version 0.3.0 now

                      1 Reply Last reply Reply Quote 1
                      • J
                        jayonrails translator last edited by

                        It looks like 3,5 GB is not enough 🤔

                        BildschirmĀ­foto 2023-02-12 um 03.02.12.png

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

                          @jayonrails it seems to work from a fresh installation here, but could be on the lower end indeed. Just to be sure, does your server overall have enough memory available? The Cloudron memory-limit is only the most the app can use, but that does not mean that memory is reserved on the whole system.

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            jayonrails translator @nebulon last edited by

                            @nebulon said in Memory requirements need to be raised (?):

                            Just to be sure, does your server overall have enough memory available?

                            I consider 128 GB ECC DDR4 RAM, which has around 95 GB RAM unused as "enough" šŸ˜„

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