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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

Memory requirements need to be raised (?)

Scheduled Pinned Locked Moved Solved Weblate
12 Posts 5 Posters 496 Views
    • 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.
  • fbartelsF Offline
    fbartelsF Offline
    fbartels App Dev
    wrote on last edited by
    #1

    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.

    scookeS 1 Reply Last reply
    0
  • girishG Do not disturb
    girishG Do not disturb
    girish Staff
    wrote on last edited by
    #2

    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
    0
  • scookeS Offline
    scookeS Offline
    scooke
    replied to fbartels on last edited by scooke
    #3

    @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

    fbartelsF 1 Reply Last reply
    0
  • fbartelsF Offline
    fbartelsF Offline
    fbartels App Dev
    replied to scooke on last edited by fbartels
    #4

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

    scookeS 1 Reply Last reply
    1
  • scookeS Offline
    scookeS Offline
    scooke
    replied to fbartels on last edited by
    #5

    @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
    1
  • nebulonN Offline
    nebulonN Offline
    nebulon Staff
    wrote on last edited by
    #6

    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.

    fbartelsF 1 Reply Last reply
    0
  • fbartelsF Offline
    fbartelsF Offline
    fbartels App Dev
    replied to nebulon on last edited by
    #7

    @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
    0
  • nebulonN Offline
    nebulonN Offline
    nebulon Staff
    wrote on last edited by
    #8

    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
    1
  • nebulonN Offline
    nebulonN Offline
    nebulon Staff
    wrote on last edited by
    #9

    Both issues are addressed with the new version 0.3.0 now

    1 Reply Last reply
    1
  • J Offline
    J Offline
    jayonrails translator
    wrote on last edited by
    #10

    It looks like 3,5 GB is not enough 🤡

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

    nebulonN 1 Reply Last reply
    0
  • nebulonN Offline
    nebulonN Offline
    nebulon Staff
    replied to jayonrails on last edited by
    #11

    @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
    0
  • J Offline
    J Offline
    jayonrails translator
    replied to nebulon on last edited by
    #12

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

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.