Files
codebase-memory-mcp/cmd
Martin Vogel ba626aac50 Use dynamic GOMEMLIMIT: 25% of system RAM, clamped to [2GB, 8GB]
Replace static 2GB default with platform-aware auto-detection:
- Linux: syscall.Sysinfo
- macOS: sysctl hw.memsize
- Windows: GlobalMemoryStatusEx

Falls back to 4GB if detection fails. User config still overrides.
Prevents both OOM kills (upper clamp) and excessive GC pressure (lower clamp).
2026-03-12 15:29:22 +01:00
..