# NousResearch/hermes-agent · Gateway memory leak and shutdown drain fix

## Open now

- Nothing open on GitHub.

Reports of severe memory accumulation in the gateway process during active sessions and shutdown cycles. Includes a related fix to drain queued writes on shutdown.

## TL;DR

- 2 member(s): 0 open issue(s), 2 closed issue(s), 0 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix found: no merged or attempted fix PR is on record for this cluster.
- **Recommended:** if this matches your symptom, consider adding to the existing issue(s) below rather than opening a new one.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`LLM_ONLY`): no structural link between members; the grouping rests entirely on an automated relevance judgement over their text.
- Read the members yourself before treating them as one problem.
- Pairwise link density `0.36`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #18438: Memory leak: Gateway accumulates ~8GB RAM in 1h with 2 active Discord sessions
- #25665: hermes-paperclip gateway memory peak hits 20.2GB on a single shutdown cycle

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
