Very high memory usage

Hey @wael00, I’m sorry to hear that you’re running into high memory usage. Based on the configuration that you provided, I notice that you say Baserow is consuming 27% of 8GB memory, resulting a usage of over 2GB.

With 2 workers, it’s actually not that uncommon. This is because we need multiple services like the asgi worker to handle websockets and http requests, 1 fast backend worker for real-time collaboration, 1 slow backend worker for exports, 1 worker for recurring tasks, 1 for the server side rendering. These all need a memory and depending on the BASEROW_AMOUNT_OF_WORKERS and BASEROW_AMOUNT_OF_GUNICORN_WORKERS environment variables, it can even be a multiple of it.

You can try and change the BASEROW_AMOUNT_OF_GUNICORN_WORKERS=2. Depending on how many CPU cores you have, this can reduce the memory usage a bit.