[build] Increase max-old-space-size (#53234)

Temporarily also set in higher level until we figure out why we're still seeing OOM's ~1400MB.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Tyler Smalley 2019-12-16 19:22:01 -08:00 committed by GitHub
parent 30196ace92
commit c4a0bd1bf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ export const OptimizeBuildTask = {
env: {
FORCE_DLL_CREATION: 'true',
KBN_CACHE_LOADER_WRITABLE: 'true',
NODE_OPTIONS: '--max-old-space-size=3072',
NODE_OPTIONS: '--max-old-space-size=4096',
},
});

View file

@ -14,7 +14,7 @@ cacheDir="$HOME/.kibana"
RED='\033[0;31m'
C_RESET='\033[0m' # Reset color
export NODE_OPTIONS="$NODE_OPTIONS --throw-deprecation"
export NODE_OPTIONS="$NODE_OPTIONS --throw-deprecation --max-old-space-size=4096"
###
### Since the Jenkins logging output collector doesn't look like a TTY