Reduce max old space size to 4096 (#3516)

This commit is contained in:
Lion - dapplion
2021-12-15 12:30:43 +01:00
committed by GitHub
parent 78b23bceef
commit 434891d2af
7 changed files with 7 additions and 7 deletions

View File

@@ -16,6 +16,6 @@ RUN /usr/app/node_modules/.bin/lodestar --help
# NodeJS applications have a default memory limit of 2.5GB.
# This limit is bit tight for a Prater node, it is recommended to raise the limit
# since memory may spike during certain network conditions.
ENV NODE_OPTIONS=--max_old_space_size=6144
ENV NODE_OPTIONS=--max-old-space-size=4096
ENTRYPOINT ["node", "/usr/app/node_modules/.bin/lodestar"]

View File

@@ -21,7 +21,7 @@ services:
# This limit is bit tight for a Prater node, it is recommended to raise the limit
# since memory may spike during certain network conditions.
environment:
NODE_OPTIONS: --max_old_space_size=6144
NODE_OPTIONS: --max-old-space-size=4096
LODESTAR_PRESET: minimal
geth:

View File

@@ -12,7 +12,7 @@ services:
# A validator client requires very little memory. This limit allows to run the validator
# along with the beacon_node in a 8GB machine and be safe on memory spikes.
environment:
NODE_OPTIONS: --max_old_space_size=2048
NODE_OPTIONS: --max-old-space-size=2048
volumes:
validator:

View File

@@ -15,7 +15,7 @@ services:
# This limit is bit tight for a Prater node, it is recommended to raise the limit
# since memory may spike during certain network conditions.
environment:
NODE_OPTIONS: --max_old_space_size=6144
NODE_OPTIONS: --max-old-space-size=4096
prometheus:
build: docker/prometheus

View File

@@ -39,6 +39,6 @@ COPY --from=build /usr/app .
# NodeJS applications have a default memory limit of 2.5GB.
# This limit is bit tight for a Prater node, it is recommended to raise the limit
# since memory may spike during certain network conditions.
ENV NODE_OPTIONS=--max_old_space_size=6144
ENV NODE_OPTIONS=--max-old-space-size=4096
ENTRYPOINT ["node", "./packages/cli/bin/lodestar"]

View File

@@ -4,4 +4,4 @@
#
# ./lodestar.sh beacon --network prater
node --trace-deprecation --max-old-space-size=6144 ./packages/cli/bin/lodestar "$@"
node --trace-deprecation --max-old-space-size=4096 ./packages/cli/bin/lodestar "$@"

View File

@@ -24,7 +24,7 @@
"test:spec-fast": "lerna run test:spec-fast --no-bail",
"test:spec-main": "lerna run test:spec-main --no-bail",
"benchmark": "yarn benchmark:files 'packages/*/test/perf/**/*.test.ts'",
"benchmark:files": "LODESTAR_PRESET=mainnet NODE_OPTIONS=--max_old_space_size=4096 benchmark --config .benchrc.yaml",
"benchmark:files": "LODESTAR_PRESET=mainnet NODE_OPTIONS=--max-old-space-size=4096 benchmark --config .benchrc.yaml",
"publish:release": "lerna publish from-package --yes --no-verify-access",
"release": "lerna version --no-push --sign-git-commit",
"postrelease": "git tag -d $(git describe --abbrev=0)",