I Always got "Container 'Build' exceeded memory limit."On logs:The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process.Any suggestion?
image: node:16.15.0# Workflow Configurationoptions: max-time: 30 size: 2xdefinitions: services: docker: memory: 512pipelines: branches: dev: - step: name: Deploy to Development deployment: Development caches: - node script: - echo $APP_NAME > env/.env - echo $APP_NAME > env/.env - ... - export NODE_OPTIONS=--max_old_space_size=8192 - npm install - npm test - npm run build:devdefinitions: caches: node: src/node_modules
Hi @김도희
Welcome to the community.
Based on the max_old_space_size option, you're using 8192 or 8 GB size for executing NPM.I'm suspecting 8 GB for a specific process is quite a bit high.
Would it be possible for you to try to use 1024 (1 GB) instead?
export NODE_OPTIONS=--max_old_space_size=1024
Let me know how it goes.
Regards,Mark C
It looks like you're new here. Sign in or register to get started.