Last analysis failed Analysis ID "AZhe7qfWkLcNQsL7S2Ja"

I’ve just linked a github repo (typescript) and analysis is failing:

The last analysis has failed. If it keeps on failing after several attempts, please contact us on Community forum and provide the following failing analysis ID: “AZhe7qfWkLcNQsL7S2Ja”.

Hi @timclip,

Welcome to the community and thanks for providing this information!

We’ve dug into the logs and found the analysis is failing due to insufficient memory. Could you please update your settings with an increased Node.js heap size? The analysis is failing because the current limit (2096 MB) is not enough for the TS files. Per our documentation, big projects may need more memory to be allocated.

You can set a higher value for sonar.javascript.node.maxspace.
For example, -Dsonar.javascript.node.maxspace=8192.

Thanks!
Miguel

1 Like

Thanks for the reply, yes it is the memory! I ended up downloading and running SonarQube locally, which helped to identify that I need to allocate even more memory (16GB), which does allow it to run successfully locally.

Unfortunately still no luck with SonarQube Cloud - after pushing the config file for this memory change to the main branch of our repo, I can’t see a way to request re-analysis? It’s just displaying:

Last analysis failedAnalysis ID “AZiD6ZP-usHiWbsNz0M3”

Hi @timclip

Given your project’s high memory needs, we recommend a CI-based analysis over Automatic Analysis. The CI-based approach provides greater control over worker memory settings, overcoming the restrictive memory constraints of Automatic Analysis.