Skip to content

Commit 00e2103

Browse files
authored
docs(config): add box.default_memory_mb to config.yaml template (#2319)
Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com>
1 parent 209706b commit 00e2103

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/langbot/templates/config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,15 @@ box:
143143
- './data/box'
144144
- '/tmp'
145145
workspace_quota_mb: null # Optional disk quota override (>= 0). null = profile default.
146+
# Default nsjail cgroup memory limit for each MCP stdio server process, in MB.
147+
# Node.js MCP servers (npx/bunx) need more memory than Python ones because V8
148+
# and WebAssembly modules (e.g. undici llhttp) reserve large virtual address
149+
# space at startup. Setting this too low causes processes to be killed with
150+
# return_code=137 (OOM kill); the symptom is "Box managed process exited
151+
# unexpectedly" in the logs. Raise on machines with ample RAM; lower only if
152+
# you run exclusively Python (uvx) MCP servers.
153+
# Can also be set via BOX__DEFAULT_MEMORY_MB. Default: 1536.
154+
default_memory_mb: 1536
146155
docker:
147156
cpu_limit_enabled: true # When false, Docker sandbox containers are started without --cpus. Memory and PID limits still apply.
148157
e2b:

0 commit comments

Comments
 (0)