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

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

How to increase the available resources.

I tried introducing a new internal image to my bitbucket-pipelines.yml file, and the build gave me this message without running anything.

"A step does not have the minimum resources needed to run (1024 MB). Services on the current step are consuming 4096 MB"

So it appears that I need to increase the resources available for the build to run.  How can I go about doing that?

1 answer

2 votes

Hi @John_Chesshir

A step in Pipelines has 4GB of available memory by default. You can increase this to 8GB by running 2x builds: https://blog.bitbucket.org/2018/02/20/support-large-builds-bitbucket-pipelines/

When you add a service to a step it will consume 1GB by default. For example a step with a single service leaves 3GB for the rest of the build. The build space must have at least 1GB to run.

You can configure a service to use anywhere from 128 to 3072 MB (or 7128 MB for 2x builds). This allows you to dedicate less memory to services and more to the build space as required. Please see "Service memory limits" in our documentation for more information: https://confluence.atlassian.com/bitbucket/use-services-and-databases-in-bitbucket-pipelines-874786688.html

Regards

Sam

But what does `1024 MB` mean in the error message? If the default value is 4 GB then how come running a service (docker) with 3 GB throws me this error?

Like # people like this

Is there any update on this?

1024 MB is the minimum amount of memory required by the default build container. If you allocate docker 3072 MB then there will be 1024 MB left for the build container. E.g.

definitions:
   services:
      docker:
         memory: 3072

If you allocate docker 3073 MB or more you will see this error.

If you allocate docker 3072 MB and you have a second service you will see this error as the total memory pool is 4 GB and the build space must have at least 1 GB to run.

is there way, by which we can allocate more than 8GB of memory to a step?

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,880 views 0 7
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