Skip to content

Commit 5d8c7e5

Browse files
committed
feat: Preserve parent execArgv while limiting worker heap size in SyntheticMonitor
1 parent ad9e937 commit 5d8c7e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Probe/Utils/Monitors/MonitorTypes/SyntheticMonitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export default class SyntheticMonitor {
238238

239239
const child: ChildProcess = fork(workerPath, [], {
240240
env: this.getSanitizedEnv(),
241-
execArgv: ["--max-old-space-size=512"], // limit worker Node.js heap to prevent unbounded memory growth
241+
execArgv: [...process.execArgv, "--max-old-space-size=512"], // preserve parent execArgv (e.g. ts-node/register) and limit worker heap
242242
timeout: timeout + 60000, // fork-level timeout: generous margin since the worker handles its own script timeout
243243
stdio: ["pipe", "pipe", "pipe", "ipc"],
244244
});

0 commit comments

Comments
 (0)