From c920904769c832892a2a4702b2d1c332ec4b4c49 Mon Sep 17 00:00:00 2001 From: DaMandal0rian Date: Mon, 4 Mar 2024 02:02:11 +0300 Subject: [PATCH] increase memory limit for node-js --- Dockerfile.indexer-agent | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile.indexer-agent b/Dockerfile.indexer-agent index 2aad4bbf7..3ee1a9140 100644 --- a/Dockerfile.indexer-agent +++ b/Dockerfile.indexer-agent @@ -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