Users are reporting that Sidekiq is consuming too much memory, triggering restarts despite having sufficient RAM (e.g., 8GB with 60% usage). davidkingham initially saw this after updating and tried resetting settings via discourse-setup, which configured db_shared_buffers = 2048MB and UNICORN_WORKERS = 4. Don suggested increasing Sidekiq’s memory limit, which resolved the issue for davidkingham. merefield confirmed experiencing the same issue and considered whether this reflects insufficient memory headroom or a potential memory leak. davidkingham later reported stable memory usage around 80% (up from 60%) with no further errors. Jagster questioned if the architecture has changed, noting the warning may appear even on non-busy, non-multisite instances. Don linked the issue to enabling YJIT, which increases memory usage, citing a note that self-hosted instances should monitor memory if enabling it. merefield noted the Sidekiq dashboard shows Redis memory but not Sidekiq’s own usage. davidkingham shared a screenshot confirming memory usage stabilized after the fix, and other performance issues also resolved.
Since updating to latest yesterday I’ve been seeing this error in the logs constantly. My server has 8gb of ram and only 60% used. I tried running discourse-setup to reset my settings, which gave me this:
This warning appeared in my /logs after I actived YJIT but there is a note it is increase memory usage. However I think it can also happen busy sites with lots of activity or busy shared servers with shared memory etc…
Just a little update here, since making the change my memory usage jumped from around 60% to 80% (8 GB) and holding steady. I haven’t seen another error in the logs and some other issues have cleared up as well.