fix(LinuxShellExecutor): fix RLIMIT_AS/NOFILE defaults causing Node.js V8 OOM#370
Merged
lioensky merged 2 commits intoJun 21, 2026
Merged
Conversation
…s V8 OOM - Change RLIMIT_AS default from 512MB to 0 (unlimited). 512MB triggers V8 SegmentedTable OOM on Node.js startup because V8 pointer-compressed heap requires ~4GB virtual address space. - Change RLIMIT_NOFILE default from 64 to 0 (inherit system default). 64 file descriptors is insufficient for Node.js (system default ~1024). - Make -v/-n ulimit flags conditional: only emit when limit > 0, allowing 0 to mean "inherit / no restriction". - Update plugin-manifest description to guide AI toward && instead of ; Root cause confirmed: probe scripts run under LinuxShellExecutor with the 512MB ulimit caused all subprocess Node.js loads to OOM, falsely marking plugins like LightMemo/PaperReader/UrlFetch as dead. With default=0 these plugins work correctly in normal VCP operation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When running shell commands via LinuxShellExecutor, the default resource limits cause Node.js child processes to crash with:
Root cause:
RLIMIT_AS=536870912(512MB virtual address space) is set as the default. Node.js V8 with pointer compression requires ~4GB of virtual address space just to initialize.Additionally,
RLIMIT_NOFILE=64(64 file descriptors) is too low for Node.js (system default ~1024).Diagnosis
Confirmed with:
This caused false perception that plugins (LightMemo, PaperReader, RAGDiaryPlugin, UrlFetch) were dead. They work normally when spawned by VCP directly.
Changes
RLIMIT_ASdefault:536870912(512MB) →0(no restriction)RLIMIT_NOFILEdefault:64→0(inherit system default ~1024)-vand-nulimit flags: now conditional — only emitted when limit > 0plugin-manifest.json: clarify;is blocked, guide AI to use&&insteadBackward Compatibility
Users with explicit
RLIMIT_AS/RLIMIT_NOFILEvalues inconfig.envare unaffected.🤖 Generated with Claude Code