Hello Team,
Facing the issue container 'docker' exceeded memory limit in Bitbucket pipeline even after mentioning size 2x for Sonarscan. We are using Bitbucket runners.
- step: &sonarscan
name: SonarCloud Scan
size: 2x
caches:
- sonar
Step size limit is set to 4096MB for small steps and for large steps 8192MB
Also, tried by increasing the docker service limit as below
definitions:
services:
docker:
memory: 3072
And we have the limitation that we can't increase the memory above 3072.
Can anyone please help us with this.
Thanks in Advance!!
Community moderators have prevented the ability to post new answers.
Hi Shweta,
You can't set a higher value than 3072 for small steps because 1GB is reserved for the build container (4096MB in total).
If the docker container is still failing - you'll need to optimise your builds so that they don't use up that much memory, by addressing any memory leaks in the commands you're running.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.