perf: server memory leak audit

Add periodic cleanup of fightReactions Map (clears when >100 entries).
Add RSS/heap logging every 10 fights in fight-loop for memory monitoring.
Set --max-old-space-size=256 in Docker CMD as safety net.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-09 00:05:03 +00:00
co-authored by Claude Opus 4.6
parent c8e4fa7a95
commit e3a4299dae
3 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -40,4 +40,4 @@ ENV NODE_ENV=production
ENV PORT=9100
EXPOSE 9100
CMD ["node", "server/dist/index.js"]
CMD ["node", "--max-old-space-size=256", "server/dist/index.js"]