SonarCloud Memory issue

I’m facing an issue in my Bitbucket Pipeline while running a SonarCloud scan. The error message indicates that the container exceeds its memory limit, causing the job to fail. Below is the relevant portion of the error:

Container ‘docker’ exceeded memory limit.

Memory configuration: OS (67530 MB), Node.js (4144 MB).

Container 'docker' exceeded memory limit.

I’ve checked the pipeline configuration, and it seems that the container is running into memory constraints during the scan process. I’ve already tried increasing the container memory limit, but the issue persists.

Steps Taken:

  • Verified pipeline configuration settings.
  • Increased memory allocation for the container.
  • Attempted to rerun the pipeline, but the issue is still occurring.

Has anyone else experienced this issue or have suggestions for resolving it? Any help would be appreciated!

Hi,

Welcome to the community!

Can you share your pipeline?

Also, the BB docs on this may help.

 
Ann