AOSSIE-Org / AOSSIE-Org/DebateAI

Unbounded In-Memory State Accumulation leads to Performance: Memory Leak in Chat Storage

オープン
#303 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
84
フォーク
198
平均マージ
2日 19時間
マージ済み PR(30日)
30

説明

**Location**: `backend/controllers/debate_controller.go`

- **Issue**: The debateRooms map grows indefinitely. There is no mechanism to remove rooms from memory once a debate is finished or if they become inactive.

- **Fix**: Implement a cleanup routine (Ticker) or an LRU cache to delete old rooms. Alternatively, offload storage to Redis/DB and remove from memory.

- **Why**: The server will eventually crash with Out Of Memory (OOM) as traffic increases.

Video or screenshot : N/A logical changes

@bhavik-mangla Please checkout this fix

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。