Skip to content

Commit e9b7055

Browse files
fix: remove mprotect option and optimize memory configuration
- Remove --mprotect 1 option to reduce memory usage in dapp deployment - Set heap memory to 1G for better performance
1 parent eaa0b4a commit e9b7055

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.github/workflows/dapp-deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ jobs:
7777
/etc/resolv.conf
7878
binary-fs: true
7979
fs-dir: /app
80-
heap: 7G
80+
heap: 1G
8181
dlopen: 1
82-
mprotect: 1
8382
secrets:
8483
docker-username: ${{ secrets.DOCKERHUB_USERNAME }}
8584
docker-password: ${{ secrets.DOCKERHUB_PAT }}

dapp/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# alpine 3.22 causes errors Segmentation fault error. Using 3.21 instead.
21
FROM node:22-alpine3.22
32
WORKDIR /app
43
COPY package*.json ./

deployment-dapp/src/singleFunction/deployApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const deployApp = async ({
3232
framework: 'SCONE' as any, // workaround framework not auto capitalized
3333
version: `v${sconifyVersion.split('.').slice(0, 2).join('.')}`, // extracts "vX.Y" from "X.Y.Z-vN" format (e.g., "5.9.1-v16" → "v5.9")
3434
entrypoint: 'node --disable-wasm-trap-handler /app/app.js',
35-
heapSize: 7516192768,
35+
heapSize: 1073741824, // 1GB
3636
fingerprint,
3737
};
3838
const app = {

0 commit comments

Comments
 (0)