AOSSIE-Org / AOSSIE-Org/DebateAI

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

Đang mở
#303 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
84
Fork
198
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
30

Mô tả

**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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.