Skip to content

Commit

Permalink
modify GC settings (#132)
Browse files Browse the repository at this point in the history
use more space for the young generations to avoid GC runs

see https:/nodejs/node/blob/main/doc/api/cli.md#--max-semi-space-sizesize-in-megabytes and nodejs/node#42511 for details
  • Loading branch information
camallen authored Jan 26, 2023
1 parent 64f6012 commit b8fd1c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:/nodejs/node/blob/main/doc/api/cli.md#--max-semi-space-sizesize-in-megabytes
# https:/nodejs/node/issues/42511
node --max-semi-space-size=64 /node_app/index.js

0 comments on commit b8fd1c7

Please sign in to comment.