I recently updated Discourse from version 3.4.0.beta1 to 3.4.0.beta3. After the update, we are noticing that the forum’s memory usage is gradually increasing, causing the application to go down. When checking the server, we can see that the redis-server is consuming 95% of the memory.
We are running redis-cli flushall daily to temporarily fix the issue. The Discourse instance is hosted in Docker.
I tried to downgrade to the previous version, but it was throwing a few errors while rebuilding.
2 Likes
May I know how to fix this? Is it possible to downgrade to the previous version, or do you have any other suggestions?
Jagster
(Jakke Lehtonen)
January 16, 2025, 6:33am
3
I don’t know how to fix Redis, but I’ve red something similar at some point. Searching may help.
But downgrading is mostly a bad idea.
If a site changes from tests-passed to stable, is the app’s code base downgraded, or is it more like Chromium OS and you have to wait for stable to “catch up” to where you are?
1 Like
RGJ
(Richard - Communiteq)
January 16, 2025, 8:13am
4
You cannot downgrade Discourse.
Redis is not using 95% of the memory but 38.9%. Still a lot.
What does your Sidekiq queue look like? /sidekiq/queues
Please find the details of /sidekiq/queues
Let me know if you need any other details
1 Like
merefield
(Robert)
January 16, 2025, 10:51am
6
Are these emails jobs by any chance?
2 Likes
I doubt it. How can I check it?
May I know if you’re talking about this queues section?
One more thing is under /sidekiq/scheduler/history
I can find Jobs::Chat::EmailNotifications still running for a longer period
RGJ
(Richard - Communiteq)
January 16, 2025, 12:30pm
10
Yes, just click on the word “low”
1 Like
Please find the details below
CocoQuark
(Coconut Flavored Quark)
January 16, 2025, 8:32pm
12
There’s an identical issue here:
With maybe a fix:
I turned off the chat function for 2 days, turned it on again, and changed the Chat channel retention days from 180 to 3 days. Now it seems to work fine, will keep an eye on it still.
Since you’re not the only one to experience this, that looks like a bug.
Thanks, but I don’t think I can turn off the chat. I’ll try to figure out another way