Skip to content

Commit b8fd1c7

Browse files
authored
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 nodejs/node#42511 for details
1 parent 64f6012 commit b8fd1c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/start.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
# Copy commit_id.txt to the public folder or create default
44
[ -f ./commit_id.txt ] && cp ./commit_id.txt ./public/commit_id.txt || echo $REVISION > ./public/commit_id.txt
55

6-
node /node_app/index.js
6+
# https://github.com/nodejs/node/blob/main/doc/api/cli.md#--max-semi-space-sizesize-in-megabytes
7+
# https://github.com/nodejs/node/issues/42511
8+
node --max-semi-space-size=64 /node_app/index.js

0 commit comments

Comments
 (0)