Skip to content

Commit

Permalink
increase memory limit for node-js
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMandal0rian committed Mar 4, 2024
1 parent 08b351e commit 08789b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.indexer-agent
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ ENV NODE_ENV production
# When simulating large transactions, sometimes indexer-agent runs out of memory.
# This flag seems force node into GC earlier, preventing the crash
# 1536mb is 1.5GB, which is appropriate for an environment with 2GB RAM
ENV NODE_OPTIONS="--max-old-space-size=1536"
# todo: increase this temporarily to 4GB to see if it fixes the crash
ENV NODE_OPTIONS="--max-old-space-size=4096"


RUN apt-get update && apt-get install -y python3 build-essential git curl
Expand Down

0 comments on commit 08789b9

Please sign in to comment.