Skip to content

Commit 6eacec9

Browse files
fix: disable wasm trap handler to avoid memory exhaustion
by default wasm allocates 10GB virtual memory cage which too big for current scone heap (1GB) https://github.com/nodejs/node/blob/v24.4.1/doc/changelogs/CHANGELOG_V20.md#cli-allow-running-wasm-in-limited-vmem-with---disable-wasm-trap-handler
1 parent c583696 commit 6eacec9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/dapp-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
docker-registry: docker.io
6464
sconify-version: '5.9.0-v15'
6565
binary: /usr/local/bin/node
66-
command: node /app/src/app.js
66+
command: node /app/src/app.js --disable-wasm-trap-handler
6767
host-path: |
6868
/etc/hosts
6969
/etc/resolv.conf

.github/workflows/dapp-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
docker-registry: docker.io
4545
sconify-version: '5.9.0-v15'
4646
binary: /usr/local/bin/node
47-
command: node /app/src/app.js
47+
command: node /app/src/app.js --disable-wasm-trap-handler
4848
host-path: |
4949
/etc/hosts
5050
/etc/resolv.conf

dapp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ WORKDIR /app
33
COPY package*.json ./
44
RUN npm ci --production
55
COPY ./src .
6-
ENTRYPOINT [ "node", "/app/app.js"]
6+
ENTRYPOINT [ "node", "/app/app.js", "--disable-wasm-trap-handler" ]

0 commit comments

Comments
 (0)