From 5312573c854e97b5fbbcb8c9fef115644bc8c247 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 20 Nov 2021 06:55:54 +0530 Subject: [PATCH] increase node heap memory (#1432) --- app.json | 4 ++-- docker/client.Dockerfile | 2 +- docker/client.Dockerfile.dev | 2 +- docker/production.Dockerfile | 2 +- docker/server.Dockerfile | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app.json b/app.json index f98e3ff007..effbbd8d70 100644 --- a/app.json +++ b/app.json @@ -31,7 +31,7 @@ }, "NODE_OPTIONS": { "description": "Node options configured to increase node memory to support app build", - "value": "--max-old-space-size=2048" + "value": "--max-old-space-size=4096" }, "SSO_GOOGLE_OAUTH2_CLIENT_ID": { "description": "Google OAuth2 client id to enable single sign-on", @@ -63,4 +63,4 @@ } } } -} \ No newline at end of file +} diff --git a/docker/client.Dockerfile b/docker/client.Dockerfile index 2e1dd654d4..0c206c1b25 100644 --- a/docker/client.Dockerfile +++ b/docker/client.Dockerfile @@ -9,7 +9,7 @@ WORKDIR /app ENV PATH /app/node_modules/.bin:$PATH # Fix for heap limit allocation issue -ENV NODE_OPTIONS="--max-old-space-size=2048" +ENV NODE_OPTIONS="--max-old-space-size=4096" # install app dependencies COPY ./frontend/package.json ./frontend/package-lock.json ./ diff --git a/docker/client.Dockerfile.dev b/docker/client.Dockerfile.dev index e1c90d3efd..837f55e47e 100644 --- a/docker/client.Dockerfile.dev +++ b/docker/client.Dockerfile.dev @@ -10,7 +10,7 @@ WORKDIR /app ENV PATH /app/node_modules/.bin:$PATH # Fix for heap limit allocation issue -ENV NODE_OPTIONS="--max-old-space-size=2048" +ENV NODE_OPTIONS="--max-old-space-size=4096" # install app dependencies diff --git a/docker/production.Dockerfile b/docker/production.Dockerfile index f6fd8676cf..9c67691beb 100644 --- a/docker/production.Dockerfile +++ b/docker/production.Dockerfile @@ -1,7 +1,7 @@ FROM node:14.17.3-buster # Fix for JS heap limit allocation issue -ENV NODE_OPTIONS="--max-old-space-size=2048" +ENV NODE_OPTIONS="--max-old-space-size=4096" RUN apt update && apt install -y \ build-essential \ diff --git a/docker/server.Dockerfile b/docker/server.Dockerfile index 401d4205c3..d860043d4b 100644 --- a/docker/server.Dockerfile +++ b/docker/server.Dockerfile @@ -3,7 +3,7 @@ FROM node:14.17.3-buster ENV NODE_ENV=production # Fix for JS heap limit allocation issue -ENV NODE_OPTIONS="--max-old-space-size=2048" +ENV NODE_OPTIONS="--max-old-space-size=4096" RUN apt update && apt install -y \ build-essential \