-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
diff --git a/dist/cjs/classes/child.js b/dist/cjs/classes/child.js | ||
index d47d14bbf5762a2412b842e183fa7ada157df7c8..4ac02ffcbbf9ee6214e0f1067228a74e342558ef 100644 | ||
index d47d14bbf5762a2412b842e183fa7ada157df7c8..fddbe1383a7fb8172d58c6d2dfc7367f0e185195 100644 | ||
--- a/dist/cjs/classes/child.js | ||
+++ b/dist/cjs/classes/child.js | ||
@@ -74,6 +74,10 @@ class Child extends events_1.EventEmitter { | ||
@@ -74,11 +74,15 @@ class Child extends events_1.EventEmitter { | ||
stdin: true, | ||
stdout: true, | ||
stderr: true, | ||
+ // Limit worker memory to not blow up the machine | ||
+ // Limit worker memory to not blow up the machine | ||
+ resourceLimits: { | ||
+ maxOldGenerationSizeMb: 1500, | ||
+ } | ||
}); | ||
} | ||
else { | ||
this.childProcess = parent = (0, child_process_1.fork)(this.mainFile, [], { | ||
- execArgv, | ||
+ execArgv: [...execArgv, '--max-old-space-size=1200'], | ||
stdio: 'pipe', | ||
}); | ||
} |