AOSSIE-Org / AOSSIE-Org/DebateAI

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

Abierto
#303 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
84
Forks
198
Merge medio
2 d 19 h
PR fusionados (30 d)
30

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.