AOSSIE-Org / AOSSIE-Org/DebateAI
Unbounded In-Memory State Accumulation leads to Performance: Memory Leak in Chat Storage
未关闭
- 主要语言
- TypeScript
- 星标
- 84
- 派生
- 198
- 平均合并
- 2 天 19 小时
- 30 天内合并 PR
- 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 还没有评估数据。