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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pipelines memory limit exceeded when running a script npm run build

I am using NextJS, when I am runing the pipeline, I encountered the issuse:

image.png

Here is my bitbucket-pipelines.yml

Untitled.png

And here is my Dockerfile

image.png

I set pipeline size is 2x, but the error still happen. I also added memory: 2024 to docker but it did't work

 

 

 

 

 

1 answer

0 votes
Ronald C_ Atlassian Team Apr 20, 2020

Hi @Tan Hoang

Hope you're doing well.
While looking at your build error, it appears that your "Docker" service requires more memory than 2024mb.

Since you've increased the "size: 2x" build memory on your build, would you increase the docker memory usage to 4096 or higher and see whether it helps?

In addition to it, you can also try to including the following command to check your docker memory usage:

while true; do date && docker stats --all --no-stream && echo "" && sleep 10; done &

This should help you determine the amount of docker memory is require to run your build.

Sincerely,
Ronald C. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

451 views 4 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you