Files
LangBot/tests/unit_tests
Hyu 209706b0b9 feat(mcp): add box.default_memory_mb config for nsjail memory limit (#2318)
Operators can now set a global default memory limit for all stdio MCP
servers in config.yaml or via environment variable:

  config.yaml:
    box:
      default_memory_mb: 2048  # default: 1536

  env:
    BOX__DEFAULT_MEMORY_MB=2048

The default is raised from 1024 to 1536 MB — a safer floor for
Node.js V8 + WASM (undici llhttp) under nsjail cgroup limits.
Individual MCP servers can still override via their own box.memory_mb.

Previously the fallback was hardcoded to 1024 MB, causing OOM kills
(return_code=137) on node/npx MCP servers that need more RAM.

Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com>
2026-07-04 14:24:06 +08:00
..
2026-06-16 11:22:29 +08:00
2026-06-16 11:22:29 +08:00
2026-06-16 11:22:29 +08:00
2026-06-16 11:22:29 +08:00
2026-06-16 11:22:29 +08:00
2026-06-16 11:22:29 +08:00
2026-06-16 11:22:29 +08:00
2026-06-16 11:22:29 +08:00
2026-05-16 12:05:54 +08:00
2026-06-03 11:12:39 +08:00