# זיכרון Redis ממשיך לעלות ב-Discourse 3.4.0.beta3 עקב באג בתוסף הצ'אט

**URL:** https://meta.discourse.org/t/redis-memory-keeps-increasing-in-discourse-3-4-0-beta3-due-to-chat-plugin-bug/349171
**Category:** Bug
**Created:** [27 בינואר,‏ 2025,‏ 9:31am UTC](https://meta.discourse.org/t/redis-memory-keeps-increasing-in-discourse-3-4-0-beta3-due-to-chat-plugin-bug/349171 "2025-01-27T09:31:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Siraj\_Moideen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/siraj_moideen/32/480987_2.png) [@Siraj\_Moideen](https://meta.discourse.org/u/Siraj_Moideen)
#### Post date: [27 בינואר,‏ 2025,‏ 9:31am UTC](https://meta.discourse.org/t/redis-memory-keeps-increasing-in-discourse-3-4-0-beta3-due-to-chat-plugin-bug/349171/1 "2025-01-27T09:31:03Z")

</div>

Please find the thread below. It was raised for support, but it now seems like a chat plugin bug. Let me know if you need any information from my side.

> [@Redis Memory Keeps Increasing in Discourse 3.4.0.beta3](https://meta.discourse.org/t/redis-memory-keeps-increasing-in-discourse-3-4-0-beta3/347197):
>
> 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. …

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [27 בינואר,‏ 2025,‏ 10:39am UTC](https://meta.discourse.org/t/redis-memory-keeps-increasing-in-discourse-3-4-0-beta3-due-to-chat-plugin-bug/349171/3 "2025-01-27T10:39:18Z")

</div>

@zogstrip can you dig this please?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [3 בפברואר,‏ 2025,‏ 5:19pm UTC](https://meta.discourse.org/t/redis-memory-keeps-increasing-in-discourse-3-4-0-beta3-due-to-chat-plugin-bug/349171/4 "2025-02-03T17:19:23Z")

</div>

There was indeed a bug… The query that was “listing” all the #chat users with unread mentions or DMs was not quite working and was returning all the users with unseen chat messages 🤦‍♂️

Since that job runs every 5 minutes, it can easily bloat sidekiq with unnecessary jobs on large channels with a fair amount of activity.

Thankfully it wasn’t spamming everyone as the “chat summary” job was extracting the unseen mentions and when it found none, just bailed out.

Will be fixed by

[https://github.com/discourse/discourse/pull/31133](https://github.com/discourse/discourse/pull/31133)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [5 בפברואר,‏ 2025,‏ 7:00am UTC](https://meta.discourse.org/t/redis-memory-keeps-increasing-in-discourse-3-4-0-beta3-due-to-chat-plugin-bug/349171/6 "2025-02-05T07:00:46Z")

</div>

נושא זה נסגר אוטומטית לאחר 21 שעות. תגובות חדשות כבר לא מותרות.
