Skip to content

Commit

Permalink
increase node heap memory (ToolJet#1432)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaysasidrn authored Nov 20, 2021
1 parent 15f6346 commit 5312573
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -63,4 +63,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion docker/client.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./
Expand Down
2 changes: 1 addition & 1 deletion docker/client.Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/production.Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion docker/server.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 5312573

Please sign in to comment.