C# Static Code Analysis

Hi,

i have Run the static code analysis for my C# code. The Execution succeeded. But the Report generation failed. Any pointers on how to resolve the issue?

Hi @SaranyaC,

Welcome to the community – thanks for posting!

On the right hand side of the Background Tasks page (just to the right of the Duration you can see a gear icon. If you click on it, you should see a Show error details link. Can you post the details of the error from that link?

Regards,

Cameron.

please find below the error details

Hi @SaranyaC,

Great, thanks for the extra information. It looks like the Compute Engine (which does the server-side processing after the scanner has finished) has run out of heap memory. You can increase it by modifying the Xmx setting for sonar.ce.javaOpts in your sonar.properties file. For example:

sonar.ce.javaOpts=-Xmx2G -Xms128m -XX:+HeapDumpOnOutOfMemoryError

You’ll need to restart your SonarQube server for the change to take effect.

Regards,

Cameron.