From b8fd1c7d16ca9a13db44626a323f6ee3d01f071f Mon Sep 17 00:00:00 2001 From: Campbell Allen Date: Thu, 26 Jan 2023 05:51:40 +0000 Subject: [PATCH] modify GC settings (#132) use more space for the young generations to avoid GC runs see https://github.com/nodejs/node/blob/main/doc/api/cli.md#--max-semi-space-sizesize-in-megabytes and https://github.com/nodejs/node/issues/42511 for details --- docker/start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/start.sh b/docker/start.sh index 1c45091..e7bc8bf 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -3,4 +3,6 @@ # Copy commit_id.txt to the public folder or create default [ -f ./commit_id.txt ] && cp ./commit_id.txt ./public/commit_id.txt || echo $REVISION > ./public/commit_id.txt -node /node_app/index.js +# https://github.com/nodejs/node/blob/main/doc/api/cli.md#--max-semi-space-sizesize-in-megabytes +# https://github.com/nodejs/node/issues/42511 +node --max-semi-space-size=64 /node_app/index.js