Skip to content

Codebase-memory opening a huge number of file descriptors #70

@jonnyom

Description

@jonnyom

Debugged with Claude to find what was causing it

⏺ Bash(lsof 2>/dev/null | awk '{print $1}' | sort | uniq -c | sort -rn | head -15)
  ⎿  161770 codebase-
     11044 node
     1420 com.apple
     1154 plugin-co
      742 corespotl
      721 zen
      680 Browser
      640 Notion
      631 python3.1
      615 Amazon
      456 Dia
      451 zed
      450 Linear
      426 Raycast
      425 Music

                                                                                                                                                                                                                                                                                               11:12 AM claude-opus-4-6
⏺ There's your culprit: codebase- (codebase-memory-mcp) has 161,770 open files — that's 88% of your system's total. Your system limit is 184,320 and you have 194,389 open files trying to be used.

Not sure exactly how this has happened, but I do constantly see claude trying to re-index projects that were already indexed. Wouldn't surprise me if that was related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstability/performanceServer crashes, OOM, hangs, high CPU/memory

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions