Memory error during SonarScanner execution

We are getting the following error for one of our projects in sonalcloud analysis

Your analysis with ID "AXW-C7nvHmhOcOUjOvdz" has failed: the analysis of your project exceeded the maximum memory available for Automatic Analysis.

  • GitHub
  • Python

It seems our Python analyzer has run out of memory while analyzing the code.

Does this happen regularly for this project on all branches, or does it happen only on some?

It’s happening all the time and on every branch.

The Automatic Analysis feature has 7G memory available to analyze a project. Is your project very large? If it’s not very large, then running out of memory could indicate a bug in our analyzer. Please let us know.

A possible workaround can be to exclude files from the analysis that are suspected to cause the analyzer to run out of memory. Let me know if you’re interested in this option and I’ll send you the list of files in a private thread.

Otherwise, for the time being, the Automatic Analysis service is not suitable for this project, as it doesn’t have enough memory for this analysis. In this case we recommend to try to scan your project using another CI tool.

Thank you for your detailed response.

Our project is not very big. I would appreciate if you send me that list of files and we can work through this issue.

Thank you

Hi Janos, I’m following up about the next step to fix this issue.