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

Container 'Build' exceeded memory limit

s.sadan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 1, 2023

Hi,

I am getting random errors 'Container 'Build' exceeded memory limit.' and the 'test' step in the below pipeline is failing even though I have assigned it 2x memory.

 

image:
name: xxx/abc:2023-04-19
username: $user
password: $password
email: noreply@abc.com

pipelines:
default:
- step:
name: build
caches:
- pip
script:
- git submodule update --init --recursive
- make build
artifacts: # defining the artifacts to be passed to each future step.
- wheels/**
- step:
name: lint
caches:
- pip
script:
- make lint
- step:
name: test
size: 2x
caches:
- pip
script:
- make test

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 1, 2023

Welcome to the Atlassian Community!

You'll need to look at what the test is doing to establish why it is consuming all of the memory.

s.sadan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 2, 2023

Thank you for your prompt response. Indeed, I acknowledge the importance of monitoring test cases in our current context. Based on my understanding, it appears that each step is allocated a default memory capacity of 4GB. However, in the case of the 'test' step it is configured to utilize twice the default memory capacity, resulting in a total of 8GB. Within this allocation, 1GB is earmarked for the 'Build' container, while the remaining 7GB is made available for the execution of the 'make test' process.

I would appreciate your confirmation regarding the accuracy of my assessment of the memory allocation described above.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 2, 2023

The memory allocation is not directly the problem.  You need to look at what the test is doing that causes it to chew up all the memory it has been given.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events