i changed service docker size to 3072
and without service of docker i used size in build steps again i getting container build exceeded limit . how to resolve this problem
G'day Swapnil!
By default, the amount of memory which can be assigned to a build step is 4GB, using the "size: 2x" parameter increases this to 8GB.
To debug your build step, you can add the following command to the beginning of your build step - this will allow you to determine where the memory is being exceeded and make changes accordingly:
- while true; do echo "Memory usage in megabytes:" && echo $((`cat /sys/fs/cgroup/memory/memory.memsw.usage_in_bytes | awk '{print $1}'`/1048576)) && sleep 0.1; done &
You can also debug your build locally with the above code added using Docker - this way you can determine if the same memory limit is being exceeded on your own infrastructure and confirm if the issue is pipelines-specific or not without using up more build minutes:
https://support.atlassian.com/bitbucket-cloud/docs/debug-pipelines-locally-with-docker/
Hope this helps.
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.