Sonar - OutOfMemoryError: Java heap space

后端 未结 8 2346
情话喂你
情话喂你 2021-02-07 02:07

I am deploying a large Java project on Sonar using \"Findbugs\" as profile and getting the error below:

Caused by: java.util.concurrent.ExecutionException: java.         


        
8条回答
  •  长情又很酷
    2021-02-07 02:35

    You can solve this issue by increase the maximum memory allocated to the appropriate process by increasing the -Xmx memory setting for the corresponding Java process in your sonar.properties file

    under SonarQube/conf/sonar.properties

    uncomment below lines and increase the memory as you want:

    For Web: Xmx5123m -Xms1536m -XX:+HeapDumpOnOutOfMemoryError
    For ElasticSearch: Xms512m -Xmx1536m -XX:+HeapDumpOnOutOfMemoryError
    For Compute Engine: sonar.ce.javaOpts=-Xmx1536m -Xms128m -XX:+HeapDumpOnOutOfMemoryError
    

提交回复
热议问题