From 23013709b5f9e5db235bc58e2bdcc1d306610e65 Mon Sep 17 00:00:00 2001 From: Mathew Heard Date: Fri, 13 Jul 2018 13:06:55 +1000 Subject: [PATCH] memory: Reduce memory usage by applying node command line flags Change-type: patch Closes: #690 Signed-off-by: Cameron Diver --- entry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry.sh b/entry.sh index 93fd195f..7fc93a16 100755 --- a/entry.sh +++ b/entry.sh @@ -38,4 +38,4 @@ if [ ! -z "${BALENA_ROOT_CA}" ]; then fi fi -exec node /usr/src/app/dist/app.js +exec node --max_old_space_size=50 --optimize_for_size --always_compact /usr/src/app/dist/app.js