Skip to content

Memory Leak in In-Memory Collaboration State #503

@Ayaanshaikh12243

Description

@Ayaanshaikh12243

Location: [collab.js), [index.js]

Issue: [const docs = { in-memory storage never gets cleaned up
Problem: Dead sessions accumulate in memory indefinitely, causing server memory bloat
Impact: Memory exhaustion, server crash after 10,000+ room abandonments
Missing: No garbage collection for disconnected users or inactive docs
Scenario: User joins room, disconnects - their data stays in [userMap forever

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions