# SonarCloudAnalyze Error in AzureDevOps

**URL:** <https://community.sonarsource.com/t/sonarcloudanalyze-error-in-azuredevops/105741>\
**Category:** SonarQube Cloud\
**Tags:** sonarqube-cloud\
**Created:** [December 9, 2023, 5:56am UTC](https://community.sonarsource.com/t/sonarcloudanalyze-error-in-azuredevops/105741 "2023-12-09T05:56:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_Internet](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/m_internet/32/51608_2.png) [@M\_Internet](https://community.sonarsource.com/u/M_Internet)\
**Post date:** [December 9, 2023, 5:56am UTC](https://community.sonarsource.com/t/sonarcloudanalyze-error-in-azuredevops/105741/1 "2023-12-09T05:56:19Z")

</div>

Hello everybody,

I’m trying to analyze my code in azuredevops but I’m facing this error that I’ve already tried to resolve by increasing the memory and I can’t do it in any way. Has anyone faced the same problem or know how to help me? Thank you very much.

```auto
2023-12-09T05:41:28.1783199Z ##[error]ERROR: Error during SonarScanner execution
2023-12-09T05:41:28.1794153Z ERROR: Error during SonarScanner execution
2023-12-09T05:41:28.1795292Z ##[error]java.lang.OutOfMemoryError: Java heap space
2023-12-09T05:41:28.1795950Z java.lang.OutOfMemoryError: Java heap space

```

Here’s my pipeline:

```auto
- stage: SonarCloudAnalysis
   jobs:
   - job: SonarCloudJob
     pool:
       vmImage: $(vmImageName)
     steps:
     - task: SonarCloudPrepare@1
       inputs:
         SonarCloud: 'AzureDevopsSonarCloud'
         organization: 'XXXXXXXXXXXXX'
         scannerMode: 'CLI'
         configMode: 'manual'
         cliProjectKey: 'XXXXXXXXXX'
         cliProjectName: 'XXXXXXXXXXXX'
         cliSources: '$(Build.SourcesDirectory)'

     - task: SonarCloudAnalyze@1
       inputs:
         jdkversion: 'JAVA_HOME_17_X64'
 env:
        SONAR_SCANNER_HOME: '$(Agent.WorkDirectory)/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.43.2/sonar-scanner'
        options: '-X -Xmx32g'

```

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [December 11, 2023, 5:53pm UTC](https://community.sonarsource.com/t/sonarcloudanalyze-error-in-azuredevops/105741/2 "2023-12-11T17:53:39Z")

</div>

Hi,

Welcome to the community!

Depending on the size of your project, you may need to bump up the memory allocation several times.

Also, can you share _how_ you’re increasing the memory?

&nbsp;  
Ann
