mirror of
https://github.com/AtHeartEngineering/lodestar.git
synced 2026-01-09 01:28:11 -05:00
Reduce max old space size to 4096 (#3516)
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
2
lodestar
2
lodestar
@@ -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 "$@"
|
||||
@@ -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)",
|
||||
|
||||
Reference in New Issue
Block a user