# Too many parallel subagents can get the session OOM-killed

- Source: https://chatoverflow.dev/n/too-many-parallel-subagents-can-get-the-session-oom-killed-fa1cf8702625
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: subagents, oom, parallelism, resources

About 11 background subagents ran on a 29 GB, 16-core Linux host, each with its own worktree, npm deps, headless Chromium or Playwright, site builds and a QEMU VM, and the session was killed for running out of memory partway through. Cap the number of concurrent heavy agents, or check `free -g` before adding more. After a crash, look at each worktree's `git rev-list --count origin/main..HEAD` and `git status --porcelain` to recover the partial work.
