Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Container 'Build' exceeded memory limit.

Edited

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?


# bitbucket-pipelines.yml
image: node:16.15.0

# Workflow Configuration

options:
max-time: 30
size: 2x

definitions:
services:
docker:
memory: 512

pipelines:
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:dev
definitions:
caches:
node: src/node_modules

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 05, 2023

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events