Sonarcloud github action runs into OutOfMemory error

  • ALM used: GitHub
  • CI system used: GitHub
  • Languages of the repository: Java, Groovy
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
    Since today, the gradle build task for SonarCloud analysis runs into an OutOfMemory error when executing the corresponding GitHub action. The build pipeline has been running for at least a year in this configuration, and the codebase is not changed very often. The exceptions seem not to fail the build - the build seems to continue running (without producing anything more).
> Task :app:sonarqube
Use of preview features have been detected during analysis. Enable DEBUG mode to see them.
Unresolved imports/types have been detected during analysis. Enable DEBUG mode to see them.
Use of preview features have been detected during analysis. Enable DEBUG mode to see them.
Error: Exception in thread "pool-5-thread-2" java.lang.OutOfMemoryError: Java heap space
	at java.base/jdk.internal.misc.Unsafe.allocateUninitializedArray(Unsafe.java:1375)
	at java.base/java.lang.StringConcatHelper.newArray(StringConcatHelper.java:497)
	at java.base/java.lang.String.join(String.java:3269)
	at java.base/java.lang.String.join(String.java:3335)
	at org.sonar.plugins.common.InputFileContext.<init>(InputFileContext.java:78)
	at org.sonar.plugins.common.Analyzer.lambda$buildInputFileContexts$4(Analyzer.java:114)
	at org.sonar.plugins.common.Analyzer$$Lambda$3890/0x00007feda0418f18.run(Unknown Source)
	at org.sonar.plugins.common.thread.ParallelizationManager.lambda$submit$0(ParallelizationManager.java:60)
	at org.sonar.plugins.common.thread.ParallelizationManager$$Lambda$3891/0x00007feda0419140.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
Error: Exception in thread "pool-5-thread-1" java.lang.OutOfMemoryError: Java heap space
	at java.base/jdk.internal.misc.Unsafe.allocateUninitializedArray(Unsafe.java:1375)
	at java.base/java.lang.StringConcatHelper.newArray(StringConcatHelper.java:497)
	at java.base/java.lang.String.join(String.java:3269)
	at java.base/java.lang.String.join(String.java:3335)
	at org.sonar.plugins.common.InputFileContext.<init>(InputFileContext.java:78)
	at org.sonar.plugins.common.Analyzer.lambda$buildInputFileContexts$4(Analyzer.java:114)
	at org.sonar.plugins.common.Analyzer$$Lambda$3890/0x00007feda0418f18.run(Unknown Source)
	at org.sonar.plugins.common.thread.ParallelizationManager.lambda$submit$0(ParallelizationManager.java:60)
	at org.sonar.plugins.common.thread.ParallelizationManager$$Lambda$3891/0x00007feda0419140.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
  • Steps to reproduce
    The error was reproducible on “re-run failed jobs”.

Hi,

Can you provide (or point us to) the full analysis log, please?

 
Thx,
Ann

Dear Ann, thank you for picking this up!

##[debug]Evaluating: secrets.<censored>
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> '<censored>'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating: secrets.<censored>
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> '<censored>'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating: secrets.SONAR_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'SONAR_TOKEN'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating condition for step: 'Gradle sonarcloud analysis'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Gradle sonarcloud analysis
##[debug]Loading inputs
##[debug]Loading env
Run cd ./<censored> && ./gradlew sonarqube
  cd ./<censored> && ./gradlew sonarqube
  shell: /usr/bin/bash -e {0}
  env:
    JAVA_HOME: /opt/hostedtoolcache/Java_Corretto_jdk/17.0.10-8.1/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Corretto_jdk/17.0.10-8.1/x64
    GRADLE_BUILD_ACTION_SETUP_COMPLETED: true
    GRADLE_BUILD_ACTION_CACHE_RESTORED: true
    <censored>: ***
    <censored>: ***
    SONAR_TOKEN: ***
##[debug]/usr/bin/bash -e /home/runner/work/_temp/9300ee11-704f-487f-a8af-6d65483f21b6.sh
> Task :buildSrc:extractPluginRequests UP-TO-DATE
> Task :buildSrc:generatePluginAdapters UP-TO-DATE
> Task :buildSrc:compileJava UP-TO-DATE
> Task :buildSrc:compileGroovy NO-SOURCE
> Task :buildSrc:compileGroovyPlugins UP-TO-DATE
> Task :buildSrc:pluginDescriptors UP-TO-DATE
> Task :buildSrc:processResources UP-TO-DATE
> Task :buildSrc:classes UP-TO-DATE
> Task :buildSrc:jar UP-TO-DATE
> Task :buildSrc:assemble UP-TO-DATE
> Task :buildSrc:pluginUnderTestMetadata UP-TO-DATE
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:validatePlugins UP-TO-DATE
> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build UP-TO-DATE
> Task :api:processResources UP-TO-DATE
> Task :api:generateJsonSchema2DataClass0 UP-TO-DATE
> Task :api:generateJsonSchema2DataClass UP-TO-DATE
> Task :api:compileJava UP-TO-DATE
> Task :api:compileGroovy NO-SOURCE
> Task :api:classes UP-TO-DATE
> Task :api:jar UP-TO-DATE
> Task :app:compileJava UP-TO-DATE
> Task :app:compileGroovy NO-SOURCE
> Task :app:processResources UP-TO-DATE
> Task :app:classes UP-TO-DATE
> Task :app:compileTestJava
> Task :app:sonarqube
Use of preview features have been detected during analysis. Enable DEBUG mode to see them.
Unresolved imports/types have been detected during analysis. Enable DEBUG mode to see them.
Use of preview features have been detected during analysis. Enable DEBUG mode to see them.
Error: Exception in thread "pool-5-thread-2" java.lang.OutOfMemoryError: Java heap space
	at java.base/jdk.internal.misc.Unsafe.allocateUninitializedArray(Unsafe.java:1375)
	at java.base/java.lang.StringConcatHelper.newArray(StringConcatHelper.java:497)
	at java.base/java.lang.String.join(String.java:3269)
	at java.base/java.lang.String.join(String.java:3335)
	at org.sonar.plugins.common.InputFileContext.<init>(InputFileContext.java:78)
	at org.sonar.plugins.common.Analyzer.lambda$buildInputFileContexts$4(Analyzer.java:114)
	at org.sonar.plugins.common.Analyzer$$Lambda$3890/0x00007feda0418f18.run(Unknown Source)
	at org.sonar.plugins.common.thread.ParallelizationManager.lambda$submit$0(ParallelizationManager.java:60)
	at org.sonar.plugins.common.thread.ParallelizationManager$$Lambda$3891/0x00007feda0419140.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
Error: Exception in thread "pool-5-thread-1" java.lang.OutOfMemoryError: Java heap space
	at java.base/jdk.internal.misc.Unsafe.allocateUninitializedArray(Unsafe.java:1375)
	at java.base/java.lang.StringConcatHelper.newArray(StringConcatHelper.java:497)
	at java.base/java.lang.String.join(String.java:3269)
	at java.base/java.lang.String.join(String.java:3335)
	at org.sonar.plugins.common.InputFileContext.<init>(InputFileContext.java:78)
	at org.sonar.plugins.common.Analyzer.lambda$buildInputFileContexts$4(Analyzer.java:114)
	at org.sonar.plugins.common.Analyzer$$Lambda$3890/0x00007feda0418f18.run(Unknown Source)
	at org.sonar.plugins.common.thread.ParallelizationManager.lambda$submit$0(ParallelizationManager.java:60)
	at org.sonar.plugins.common.thread.ParallelizationManager$$Lambda$3891/0x00007feda0419140.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)

That’s all I have regarding logs - from the github action.

Hi,

Would you be able to add --info to the Gradle analysis command and post those logs?

 
Thx,
Ann

Dear Ann,

here are those logs, with the --info flag activated.

1m 51s
##[debug]Evaluating: secrets.GITHUB_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'GITHUB_TOKEN'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating: secrets.ACCESS_TOKEN_READ_GITHUB_PACKAGES
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'ACCESS_TOKEN_READ_GITHUB_PACKAGES'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating: secrets.SONAR_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'SONAR_TOKEN'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating condition for step: 'Gradle sonarcloud analysis'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Gradle sonarcloud analysis
##[debug]Loading inputs
##[debug]Loading env
Run cd ./<folder> && ./gradlew sonarqube --info
##[debug]/usr/bin/bash -e /home/runner/work/_temp/a3ab72a4-411b-4e38-bf63-ac716b990e53.sh
Initialized native services in: /home/runner/.gradle/native
Initialized jansi services in: /home/runner/.gradle/native
The client will now receive all logging from the daemon (pid: 1717). The daemon log file: /home/runner/.gradle/daemon/7.3/daemon-1717.out.log
Starting 2nd build in daemon [uptime: 57.532 secs, performance: 99%, non-heap usage: 32% of 256 MiB]
Closing daemon's stdin at end of input.
The daemon will no longer process any standard input.
Using 2 worker leases.
Now considering [/home/runner/work/<repo>/<repo>/<folder>, /home/runner/work/<repo>/<repo>/<folder>/buildSrc] as hierarchies to watch
Now considering [/home/runner/work/<repo>/<repo>/<folder>/buildSrc, /home/runner/work/<repo>/<repo>/<folder>] as hierarchies to watch
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
Settings evaluated using settings file '/home/runner/work/<repo>/<repo>/<folder>/settings.gradle'.
Projects loaded. Root project using build file '/home/runner/work/<repo>/<repo>/<folder>/build.gradle'.
Included projects: [root project 'automatic-planning', project ':api', project ':app']

> Configure project :buildSrc
Evaluating project ':buildSrc' using build file '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/build.gradle'.
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/src/main/resources', not found
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/src/main/java', not found
Selected primary task 'build' from project :
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/src/main/resources', not found
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/src/main/java', not found
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/src/main/resources', not found
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/src/main/java', not found
:buildSrc:extractPluginRequests (Thread[Daemon worker,5,main]) started.

> Task :buildSrc:extractPluginRequests UP-TO-DATE
Caching disabled for task ':buildSrc:extractPluginRequests' because:
  Build cache is disabled
Skipping task ':buildSrc:extractPluginRequests' as it is up-to-date.
:buildSrc:extractPluginRequests (Thread[Daemon worker,5,main]) completed. Took 0.018 secs.
:buildSrc:generatePluginAdapters (Thread[Execution worker for ':buildSrc',5,main]) started.

> Task :buildSrc:generatePluginAdapters UP-TO-DATE
Caching disabled for task ':buildSrc:generatePluginAdapters' because:
  Build cache is disabled
Skipping task ':buildSrc:generatePluginAdapters' as it is up-to-date.
:buildSrc:generatePluginAdapters (Thread[Execution worker for ':buildSrc',5,main]) completed. Took 0.0 secs.
:buildSrc:compileJava (Thread[Execution worker for ':buildSrc',5,main]) started.

> Task :buildSrc:compileJava UP-TO-DATE
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/src/main/java', not found
Caching disabled for task ':buildSrc:compileJava' because:
  Build cache is disabled
Skipping task ':buildSrc:compileJava' as it is up-to-date.
:buildSrc:compileJava (Thread[Execution worker for ':buildSrc',5,main]) completed. Took 0.024 secs.
:buildSrc:compileGroovy (Thread[Daemon worker,5,main]) started.

> Task :buildSrc:compileGroovy NO-SOURCE
Skipping task ':buildSrc:compileGroovy' as it has no source files and no previous output files.
:buildSrc:compileGroovy (Thread[Daemon worker,5,main]) completed. Took 0.0 secs.
:buildSrc:compileGroovyPlugins (Thread[Daemon worker,5,main]) started.

> Task :buildSrc:compileGroovyPlugins UP-TO-DATE
Caching disabled for task ':buildSrc:compileGroovyPlugins' because:
  Build cache is disabled
Skipping task ':buildSrc:compileGroovyPlugins' as it is up-to-date.
:buildSrc:compileGroovyPlugins (Thread[Daemon worker,5,main]) completed. Took 0.002 secs.
:buildSrc:pluginDescriptors (Thread[Daemon worker,5,main]) started.

> Task :buildSrc:pluginDescriptors UP-TO-DATE
Caching disabled for task ':buildSrc:pluginDescriptors' because:
  Build cache is disabled
Skipping task ':buildSrc:pluginDescriptors' as it is up-to-date.
:buildSrc:pluginDescriptors (Thread[Daemon worker,5,main]) completed. Took 0.002 secs.
:buildSrc:processResources (Thread[Daemon worker,5,main]) started.

> Task :buildSrc:processResources UP-TO-DATE
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/src/main/resources', not found
Caching disabled for task ':buildSrc:processResources' because:
  Build cache is disabled
Skipping task ':buildSrc:processResources' as it is up-to-date.
:buildSrc:processResources (Thread[Daemon worker,5,main]) completed. Took 0.001 secs.
:buildSrc:classes (Thread[Execution worker for ':buildSrc',5,main]) started.

> Task :buildSrc:classes UP-TO-DATE
Skipping task ':buildSrc:classes' as it has no actions.
:buildSrc:classes (Thread[Execution worker for ':buildSrc',5,main]) completed. Took 0.0 secs.
:buildSrc:jar (Thread[Execution worker for ':buildSrc',5,main]) started.

> Task :buildSrc:jar UP-TO-DATE
Caching disabled for task ':buildSrc:jar' because:
  Build cache is disabled
Skipping task ':buildSrc:jar' as it is up-to-date.
:buildSrc:jar (Thread[Execution worker for ':buildSrc',5,main]) completed. Took 0.001 secs.
:buildSrc:assemble (Thread[Execution worker for ':buildSrc',5,main]) started.

> Task :buildSrc:assemble UP-TO-DATE
Skipping task ':buildSrc:assemble' as it has no actions.
:buildSrc:assemble (Thread[Execution worker for ':buildSrc',5,main]) completed. Took 0.0 secs.
:buildSrc:pluginUnderTestMetadata (Thread[Execution worker for ':buildSrc',5,main]) started.

> Task :buildSrc:pluginUnderTestMetadata UP-TO-DATE
Caching disabled for task ':buildSrc:pluginUnderTestMetadata' because:
  Build cache is disabled
Skipping task ':buildSrc:pluginUnderTestMetadata' as it is up-to-date.
:buildSrc:pluginUnderTestMetadata (Thread[Execution worker for ':buildSrc',5,main]) completed. Took 0.002 secs.
:buildSrc:compileTestJava (Thread[Execution worker for ':buildSrc',5,main]) started.

> Task :buildSrc:compileTestJava NO-SOURCE
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/src/test/java', not found
Skipping task ':buildSrc:compileTestJava' as it has no source files and no previous output files.
:buildSrc:compileTestJava (Thread[Execution worker for ':buildSrc',5,main]) completed. Took 0.0 secs.
:buildSrc:compileTestGroovy (Thread[Daemon worker,5,main]) started.

> Task :buildSrc:compileTestGroovy NO-SOURCE
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/src/test/groovy', not found
Skipping task ':buildSrc:compileTestGroovy' as it has no source files and no previous output files.
:buildSrc:compileTestGroovy (Thread[Daemon worker,5,main]) completed. Took 0.0 secs.
:buildSrc:processTestResources (Thread[Daemon worker,5,main]) started.

> Task :buildSrc:processTestResources NO-SOURCE
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/src/test/resources', not found
Skipping task ':buildSrc:processTestResources' as it has no source files and no previous output files.
:buildSrc:processTestResources (Thread[Daemon worker,5,main]) completed. Took 0.0 secs.
:buildSrc:testClasses (Thread[Daemon worker,5,main]) started.

> Task :buildSrc:testClasses UP-TO-DATE
Skipping task ':buildSrc:testClasses' as it has no actions.
:buildSrc:testClasses (Thread[Daemon worker,5,main]) completed. Took 0.0 secs.
:buildSrc:test (Thread[Daemon worker,5,main]) started.

> Task :buildSrc:test NO-SOURCE
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/build/classes/java/test', not found
file or directory '/home/runner/work/<repo>/<repo>/<folder>/buildSrc/build/classes/groovy/test', not found
Skipping task ':buildSrc:test' as it has no source files and no previous output files.
:buildSrc:test (Thread[Daemon worker,5,main]) completed. Took 0.001 secs.
:buildSrc:validatePlugins (Thread[Daemon worker,5,main]) started.

> Task :buildSrc:validatePlugins UP-TO-DATE
Caching disabled for task ':buildSrc:validatePlugins' because:
  Build cache is disabled
Skipping task ':buildSrc:validatePlugins' as it is up-to-date.
:buildSrc:validatePlugins (Thread[Daemon worker,5,main]) completed. Took 0.024 secs.
:buildSrc:check (Thread[Execution worker for ':buildSrc',5,main]) started.

> Task :buildSrc:check UP-TO-DATE
Skipping task ':buildSrc:check' as it has no actions.
:buildSrc:check (Thread[Execution worker for ':buildSrc',5,main]) completed. Took 0.0 secs.
:buildSrc:build (Thread[Execution worker for ':buildSrc',5,main]) started.

> Task :buildSrc:build UP-TO-DATE
Skipping task ':buildSrc:build' as it has no actions.
:buildSrc:build (Thread[Execution worker for ':buildSrc',5,main]) completed. Took 0.0 secs.

> Configure project :
Evaluating root project 'automatic-planning' using build file '/home/runner/work/<repo>/<repo>/<folder>/build.gradle'.

> Configure project :api
Evaluating project ':api' using build file '/home/runner/work/<repo>/<repo>/<folder>/api/build.gradle'.

> Configure project :app
Evaluating project ':app' using build file '/home/runner/work/<repo>/<repo>/<folder>/app/build.gradle'.
All projects evaluated.
Selected primary task 'sonarqube' from project :
Tasks to be executed: [task ':api:processResources', task ':api:generateJsonSchema2DataClass0', task ':api:generateJsonSchema2DataClass', task ':api:compileJava', task ':api:compileGroovy', task ':api:classes', task ':api:jar', task ':app:compileJava', task ':app:compileGroovy', task ':app:processResources', task ':app:classes', task ':app:compileTestJava', task ':app:sonarqube']
Tasks that were excluded: []
:api:processResources (Thread[Daemon worker,5,main]) started.

> Task :api:processResources UP-TO-DATE
Caching disabled for task ':api:processResources' because:
  Build cache is disabled
Skipping task ':api:processResources' as it is up-to-date.
:api:processResources (Thread[Daemon worker,5,main]) completed. Took 0.005 secs.
:api:generateJsonSchema2DataClass0 (Thread[Execution worker for ':',5,main]) started.

> Task :api:generateJsonSchema2DataClass0 UP-TO-DATE
Caching disabled for task ':api:generateJsonSchema2DataClass0' because:
  Build cache is disabled
Skipping task ':api:generateJsonSchema2DataClass0' as it is up-to-date.
:api:generateJsonSchema2DataClass0 (Thread[Execution worker for ':',5,main]) completed. Took 0.001 secs.
:api:generateJsonSchema2DataClass (Thread[Execution worker for ':',5,main]) started.

> Task :api:generateJsonSchema2DataClass UP-TO-DATE
Skipping task ':api:generateJsonSchema2DataClass' as it has no actions.
:api:generateJsonSchema2DataClass (Thread[Execution worker for ':',5,main]) completed. Took 0.0 secs.
:api:compileJava (Thread[Execution worker for ':',5,main]) started.

> Task :api:compileJava UP-TO-DATE
file or directory '/home/runner/work/<repo>/<repo>/<folder>/api/src/main/java', not found
Caching disabled for task ':api:compileJava' because:
  Build cache is disabled
Skipping task ':api:compileJava' as it is up-to-date.
:api:compileJava (Thread[Execution worker for ':',5,main]) completed. Took 0.045 secs.
:api:compileGroovy (Thread[Daemon worker,5,main]) started.

> Task :api:compileGroovy NO-SOURCE
file or directory '/home/runner/work/<repo>/<repo>/<folder>/api/src/main/groovy', not found
Skipping task ':api:compileGroovy' as it has no source files and no previous output files.
:api:compileGroovy (Thread[Daemon worker,5,main]) completed. Took 0.0 secs.
:api:classes (Thread[Daemon worker,5,main]) started.

> Task :api:classes UP-TO-DATE
Skipping task ':api:classes' as it has no actions.
:api:classes (Thread[Daemon worker,5,main]) completed. Took 0.0 secs.
:api:jar (Thread[Daemon worker,5,main]) started.

> Task :api:jar UP-TO-DATE
Caching disabled for task ':api:jar' because:
  Build cache is disabled
Skipping task ':api:jar' as it is up-to-date.
:api:jar (Thread[Daemon worker,5,main]) completed. Took 0.001 secs.
:app:compileJava (Thread[Daemon worker,5,main]) started.

> Task :app:compileJava UP-TO-DATE
Caching disabled for task ':app:compileJava' because:
  Build cache is disabled
Skipping task ':app:compileJava' as it is up-to-date.
:app:compileJava (Thread[Daemon worker,5,main]) completed. Took 0.073 secs.
:app:compileGroovy (Thread[Execution worker for ':',5,main]) started.

> Task :app:compileGroovy NO-SOURCE
file or directory '/home/runner/work/<repo>/<repo>/<folder>/app/src/main/groovy', not found
Skipping task ':app:compileGroovy' as it has no source files and no previous output files.
:app:compileGroovy (Thread[Execution worker for ':',5,main]) completed. Took 0.001 secs.
:app:processResources (Thread[Execution worker for ':',5,main]) started.

> Task :app:processResources UP-TO-DATE
Caching disabled for task ':app:processResources' because:
  Build cache is disabled
Skipping task ':app:processResources' as it is up-to-date.
:app:processResources (Thread[Execution worker for ':',5,main]) completed. Took 0.001 secs.
:app:classes (Thread[Execution worker for ':',5,main]) started.

> Task :app:classes UP-TO-DATE
Skipping task ':app:classes' as it has no actions.
:app:classes (Thread[Execution worker for ':',5,main]) completed. Took 0.0 secs.
:app:compileTestJava (Thread[Execution worker for ':',5,main]) started.
This JVM does not support getting OS memory, so no OS memory status updates will be broadcast

> Task :app:compileTestJava
Watching 126 directories to track changes
Watching 127 directories to track changes
Watching 128 directories to track changes
Watching 129 directories to track changes
Watching 141 directories to track changes
Caching disabled for task ':app:compileTestJava' because:
  Build cache is disabled
Task ':app:compileTestJava' is not up-to-date because:
  No history is available.
Watching 140 directories to track changes
Watching 139 directories to track changes
Watching 138 directories to track changes
Watching 137 directories to track changes
The input changes require a full rebuild for incremental task ':app:compileTestJava'.
Full recompilation is required because no incremental change information is available. This is usually caused by clean builds or changing compiler arguments.
Compiling with toolchain '/opt/hostedtoolcache/Java_Corretto_jdk/17.0.10-8.1/x64'.
Starting process 'Gradle Worker Daemon 2'. Working directory: /home/runner/.gradle/workers Command: /opt/hostedtoolcache/Java_Corretto_jdk/17.0.10-8.1/x64/bin/java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED @/home/runner/.gradle/.tmp/gradle-worker-classpath14161866170283480392txt -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Worker Daemon 2'
Successfully started process 'Gradle Worker Daemon 2'
Started Gradle worker daemon (0.33 secs) with fork options DaemonForkOptions{executable=/opt/hostedtoolcache/Java_Corretto_jdk/17.0.10-8.1/x64/bin/java, minHeapSize=null, maxHeapSize=null, jvmArgs=[--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED, --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED, --add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED], keepAliveMode=SESSION}.
Compiling with JDK Java compiler API.
Class dependency analysis for incremental compilation took 0.036 secs.
Created classpath snapshot for incremental compilation in 0.064 secs.
Watching 149 directories to track changes
Watching 150 directories to track changes
Watching 151 directories to track changes
Watching 152 directories to track changes
:app:compileTestJava (Thread[Execution worker for ':',5,main]) completed. Took 9.361 secs.
:app:sonarqube (Thread[Execution worker for ':',5,main]) started.

> Task :app:sonarqube
Caching disabled for task ':app:sonarqube' because:
  Build cache is disabled
Task ':app:sonarqube' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
User cache: /home/runner/.sonar/cache
Default locale: "en", source code encoding: "UTF-8"
Load global settings
Load global settings (done) | time=331ms
Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
User cache: /home/runner/.sonar/cache
Loading required plugins
Load plugins index
Load plugins index (done) | time=338ms
Load/download plugins
Load/download plugins (done) | time=802ms
Found an active CI vendor: 'Github Actions'
Load project settings for component key: 'doctariDev_<repo>'
Load project settings for component key: 'doctariDev_<repo>' (done) | time=318ms
Process project properties
Project key: doctariDev_<repo>
Base dir: /home/runner/work/<repo>/<repo>/<folder>/app
Working dir: /home/runner/work/<repo>/<repo>/<folder>/app/build/sonar
Load project branches
Load project branches (done) | time=317ms
Check ALM binding of project 'doctariDev_<repo>'
Detected project binding: BOUND
Check ALM binding of project 'doctariDev_<repo>' (done) | time=288ms
Load project pull requests
Load project pull requests (done) | time=326ms
Load branch configuration
Github event: workflow_dispatch
Load branch configuration (done) | time=1ms
Load quality profiles
Load quality profiles (done) | time=376ms
Load active rules
Load active rules (done) | time=9981ms
Organization key: doctaridev
Preprocessing files...

2 languages detected in 678 preprocessed files
678 files indexed

> Task :app:sonarqube
0 files ignored because of inclusion/exclusion patterns
5 files ignored because of scm ignore settings
Loading plugins for detected languages
Load/download plugins
Load/download plugins (done) | time=418ms
Load project repositories
Load project repositories (done) | time=515ms
Indexing files...
Project configuration:
  Excluded sources: **/build-wrapper-dump.json
Quality profile for java: Sonar way
Quality profile for json: Sonar way
------------- Run sensors on module <repo>
Load metrics repository
Load metrics repository (done) | time=290ms
Sensor cache enabled
Load sensor cache
Load sensor cache (404) | time=235ms
Sensor JavaSensor [java]
Configured Java source version (sonar.java.source): 17, preview features enabled (sonar.java.enablePreview): false
Server-side caching is enabled. The Java analyzer will not try to leverage data from a previous analysis.
Using ECJ batch to parse 313 Main java source files with batch size 26 KB.
Starting batch processing.
The Java analyzer cannot skip unchanged files in this context. A full analysis is performed for all files.
100% analyzed
Batch processing: Done.
Did not optimize analysis for any files, performed a full analysis for all 313 files.
Use of preview features have been detected during analysis. Enable DEBUG mode to see them.
Using ECJ batch to parse 102 Test java source files with batch size 26 KB.
Starting batch processing.
100% analyzed
Batch processing: Done.
Did not optimize analysis for any files, performed a full analysis for all 102 files.
Unresolved imports/types have been detected during analysis. Enable DEBUG mode to see them.
Use of preview features have been detected during analysis. Enable DEBUG mode to see them.
No "Generated" source files to scan.
Sensor JavaSensor [java] (done) | time=48342ms
Sensor ThymeLeaf template sensor [securityjavafrontend]
Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=1ms
Sensor SurefireSensor [java]
parsing [/home/runner/work/<repo>/<repo>/<folder>/app/build/test-results/test]
Sensor SurefireSensor [java] (done) | time=329ms
Sensor Removed properties sensor [java]
Sensor Removed properties sensor [java] (done) | time=0ms
Sensor JaCoCo XML Report Importer [jacoco]
Importing 1 report(s). Turn your logs in debug mode in order to see the exhaustive list.
Sensor JaCoCo XML Report Importer [jacoco] (done) | time=219ms
Sensor IaC CloudFormation Sensor [iac]

0 source files to be analyzed
0/0 source files have been analyzed
0 source files to be analyzed
0/0 source files have been analyzed
0 source files to be analyzed
0/0 source files have been analyzed

> Task :app:sonarqube
Sensor IaC CloudFormation Sensor [iac] (done) | time=339ms
Sensor IaC AzureResourceManager Sensor [iac]
Sensor IaC AzureResourceManager Sensor [iac] (done) | time=92ms
Sensor IaC Docker Sensor [iac]
Sensor IaC Docker Sensor [iac] (done) | time=37ms
Sensor Serverless configuration file sensor [security]
0 Serverless function entries were found in the project
0 Serverless function handlers were kept as entrypoints
Sensor Serverless configuration file sensor [security] (done) | time=3ms
Sensor AWS SAM template file sensor [security]
Sensor AWS SAM template file sensor [security] (done) | time=2ms
Sensor AWS SAM Inline template file sensor [security]
Sensor AWS SAM Inline template file sensor [security] (done) | time=1ms
Sensor javabugs [dbd]
Reading IR files from: /home/runner/work/<repo>/<repo>/<folder>/app/build/sonar/ir/java
Analyzing 2673 functions to detect bugs.
Sensor javabugs [dbd] (done) | time=10702ms
Sensor pythonbugs [dbd]
Reading IR files from: /home/runner/work/<repo>/<repo>/<folder>/app/build/sonar/ir/python
No IR files have been included for analysis.
Sensor pythonbugs [dbd] (done) | time=0ms
Sensor TextAndSecretsSensor [text]
Available processors: 2
Using 2 threads for analysis.

Error: Exception in thread "pool-5-thread-1" java.lang.OutOfMemoryError: Java heap space

Error: Exception in thread "pool-5-thread-2" java.lang.OutOfMemoryError: Java heap space
> Task :app:sonarqube FAILED
:app:sonarqube (Thread[Execution worker for ':',5,main]) completed. Took 1 mins 41.074 secs.


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:sonarqube'.
> Java heap space
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3/userguide/command_line_interface.html#sec:command_line_warnings
17 actionable tasks: 2 executed, 15 up-to-date

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 51s
Stopped 1 worker daemon(s).
Error: Process completed with exit code 1.
1 Like

Hi,

Thanks for the expanded logging. I’ve flagged this for the language experts.

 
Ann

2 Likes

Update: I ran the job again on github, with the --debug flag activated for the gradle task. The interesting part is possibly the following. I can also upload the whole file (~14MB text) if needed for further analysis.

2024-04-02T14:32:17.9146189Z 2024-04-02T14:32:14.877+0000 [INFO] [org.sonarqube.gradle.SonarQubeTask] Sensor pythonbugs [dbd]
2024-04-02T14:32:17.9150240Z 2024-04-02T14:32:14.878+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Could not load type definitions from /home/runner/work/io.planer.service.automaticplanning/io.planer.service.automaticplanning/AutomaticPlanning/app/build/sonar/ir/python/collected.typedefs: /home/runner/work/io.planer.service.automaticplanning/io.planer.service.automaticplanning/AutomaticPlanning/app/build/sonar/ir/python/collected.typedefs (No such file or directory)
2024-04-02T14:32:17.9152268Z 2024-04-02T14:32:14.878+0000 [INFO] [org.sonarqube.gradle.SonarQubeTask] Reading IR files from: /home/runner/work/io.planer.service.automaticplanning/io.planer.service.automaticplanning/AutomaticPlanning/app/build/sonar/ir/python
2024-04-02T14:32:17.9153190Z 2024-04-02T14:32:14.878+0000 [INFO] [org.sonarqube.gradle.SonarQubeTask] No IR files have been included for analysis.
2024-04-02T14:32:17.9154081Z 2024-04-02T14:32:14.878+0000 [INFO] [org.sonarqube.gradle.SonarQubeTask] Sensor pythonbugs [dbd] (done) | time=1ms
2024-04-02T14:32:17.9154916Z 2024-04-02T14:32:14.878+0000 [INFO] [org.sonarqube.gradle.SonarQubeTask] Sensor TextAndSecretsSensor [text]
2024-04-02T14:32:17.9155657Z 2024-04-02T14:32:14.878+0000 [INFO] [org.sonarqube.gradle.SonarQubeTask] Available processors: 2
2024-04-02T14:32:17.9156444Z 2024-04-02T14:32:14.878+0000 [INFO] [org.sonarqube.gradle.SonarQubeTask] Using 2 threads for analysis.
2024-04-02T14:32:17.9157857Z 2024-04-02T14:32:15.703+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Analyzing only language associated files, "sonar.text.inclusions.activate" property is deactivated
2024-04-02T14:32:17.9159503Z 2024-04-02T14:32:15.711+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9161645Z 2024-04-02T14:32:16.003+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9163496Z 2024-04-02T14:32:16.016+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9165318Z 2024-04-02T14:32:16.303+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9167202Z 2024-04-02T14:32:16.473+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9169116Z 2024-04-02T14:32:16.769+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9171549Z 2024-04-02T14:32:16.834+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9173466Z 2024-04-02T14:32:16.892+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9175072Z 2024-04-02T14:32:16.902+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/test/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9176840Z 2024-04-02T14:32:16.913+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/test/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9178829Z 2024-04-02T14:32:16.966+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9180554Z 2024-04-02T14:32:16.972+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9182627Z 2024-04-02T14:32:17.395+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9184600Z 2024-04-02T14:32:17.406+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9186462Z 2024-04-02T14:32:17.415+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9189141Z 2024-04-02T14:32:17.635+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:17.9191152Z 2024-04-02T14:32:17.740+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.0019761Z 2024-04-02T14:32:17.914+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.0021669Z 2024-04-02T14:32:17.922+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.0023994Z 2024-04-02T14:32:17.925+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.0026360Z 2024-04-02T14:32:17.958+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.0028869Z 2024-04-02T14:32:17.964+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.0030693Z 2024-04-02T14:32:17.968+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.0032941Z 2024-04-02T14:32:17.975+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.0034627Z 2024-04-02T14:32:17.978+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.1018293Z 2024-04-02T14:32:18.030+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/test/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.4018684Z 2024-04-02T14:32:18.351+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.4021972Z 2024-04-02T14:32:18.352+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.7018830Z 2024-04-02T14:32:18.634+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/test/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.7022133Z 2024-04-02T14:32:18.639+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.9019096Z 2024-04-02T14:32:18.805+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.9023345Z 2024-04-02T14:32:18.813+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.9027529Z 2024-04-02T14:32:18.858+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.9031536Z 2024-04-02T14:32:18.886+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:18.9036105Z 2024-04-02T14:32:18.889+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:19.1019709Z 2024-04-02T14:32:19.094+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:19.4019689Z 2024-04-02T14:32:19.366+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:19.4023623Z 2024-04-02T14:32:19.376+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:19.4027636Z 2024-04-02T14:32:19.392+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:19.5019073Z 2024-04-02T14:32:19.409+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:19.5023028Z 2024-04-02T14:32:19.412+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:19.5026470Z 2024-04-02T14:32:19.415+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:19.5030313Z 2024-04-02T14:32:19.446+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:19.7018759Z 2024-04-02T14:32:19.643+0000 [LIFECYCLE] [org.gradle.cache.internal.DefaultFileLockManager] 
2024-04-02T14:32:19.7020903Z 2024-04-02T14:32:19.643+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-04-02T14:32:19.7023243Z 2024-04-02T14:32:19.643+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-04-02T14:32:19.7025507Z 2024-04-02T14:32:19.643+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-04-02T14:32:19.7028100Z 2024-04-02T14:32:19.643+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-04-02T14:32:19.7030488Z 2024-04-02T14:32:19.644+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-04-02T14:32:19.7032744Z 2024-04-02T14:32:19.644+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-04-02T14:32:21.5022455Z 2024-04-02T14:32:19.401+0000 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] 
2024-04-02T14:32:21.5024463Z 2024-04-02T14:32:19.401+0000 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :app:sonarqube
2024-04-02T14:32:21.5027517Z 2024-04-02T14:32:19.652+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5031432Z 2024-04-02T14:32:19.666+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5035519Z 2024-04-02T14:32:19.711+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5039141Z 2024-04-02T14:32:20.037+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5042690Z 2024-04-02T14:32:20.042+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5046258Z 2024-04-02T14:32:20.056+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5050131Z 2024-04-02T14:32:20.058+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5054753Z 2024-04-02T14:32:20.068+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5058451Z 2024-04-02T14:32:20.068+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/test/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5061802Z 2024-04-02T14:32:20.231+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5065980Z 2024-04-02T14:32:20.311+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/test/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5070337Z 2024-04-02T14:32:20.348+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5074347Z 2024-04-02T14:32:20.401+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5078180Z 2024-04-02T14:32:20.623+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5081892Z 2024-04-02T14:32:20.627+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5085659Z 2024-04-02T14:32:20.821+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5089014Z 2024-04-02T14:32:20.827+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/test/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5092740Z 2024-04-02T14:32:20.838+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5096914Z 2024-04-02T14:32:20.843+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5101070Z 2024-04-02T14:32:20.894+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5105144Z 2024-04-02T14:32:20.928+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5109307Z 2024-04-02T14:32:21.128+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5113115Z 2024-04-02T14:32:21.145+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5117154Z 2024-04-02T14:32:21.169+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5121115Z 2024-04-02T14:32:21.186+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.5129681Z 2024-04-02T14:32:21.215+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.9018742Z 2024-04-02T14:32:21.804+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:21.9022314Z 2024-04-02T14:32:21.871+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:22.0023573Z 2024-04-02T14:32:21.915+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:22.0027397Z 2024-04-02T14:32:21.931+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:22.0030938Z 2024-04-02T14:32:21.937+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:22.2018885Z 2024-04-02T14:32:22.161+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:22.3018585Z 2024-04-02T14:32:22.207+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:22.3022012Z 2024-04-02T14:32:22.207+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/test/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:22.3024992Z 2024-04-02T14:32:22.223+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/test/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:22.4019267Z 2024-04-02T14:32:22.356+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:22.4022871Z 2024-04-02T14:32:22.359+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:22.4026853Z 2024-04-02T14:32:22.370+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:22.4030898Z 2024-04-02T14:32:22.373+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:22.8019033Z 2024-04-02T14:32:22.696+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:23.0032096Z 2024-04-02T14:32:22.987+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:23.0035738Z 2024-04-02T14:32:22.991+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:23.1019107Z 2024-04-02T14:32:22.999+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:23.2018906Z 2024-04-02T14:32:23.134+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:23.2022863Z 2024-04-02T14:32:23.173+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:23.2026815Z 2024-04-02T14:32:23.173+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/test/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:23.2030331Z 2024-04-02T14:32:23.183+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:23.2033931Z 2024-04-02T14:32:23.186+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:23.3019089Z 2024-04-02T14:32:23.206+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:23.6018717Z 2024-04-02T14:32:23.563+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:24.1019010Z 2024-04-02T14:32:24.012+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:24.1023467Z 2024-04-02T14:32:24.016+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/integrationTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:24.3019112Z 2024-04-02T14:32:24.194+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:24.3023693Z 2024-04-02T14:32:24.208+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:24.3028980Z 2024-04-02T14:32:24.215+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:24.4018057Z 2024-04-02T14:32:24.354+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:24.5019385Z 2024-04-02T14:32:24.432+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:24.5024053Z 2024-04-02T14:32:24.461+0000 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/regressionTest/resources/<path>/<to>/<file>.json' generated metadata as test  with charset 'UTF-8'
2024-04-02T14:32:34.2017710Z 2024-04-02T14:32:34.155+0000 [LIFECYCLE] [org.gradle.cache.internal.DefaultFileLockManager] 
2024-04-02T14:32:34.2020726Z 2024-04-02T14:32:34.155+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-04-02T14:32:34.2023914Z 2024-04-02T14:32:34.155+0000 [ERROR] [system.err] Exception in thread "Daemon client event forwarder" java.lang.OutOfMemoryError: Java heap space
2024-04-02T14:32:34.2027428Z 2024-04-02T14:32:34.156+0000 [ERROR] [system.err] 	at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1661)
2024-04-02T14:32:34.2030549Z 2024-04-02T14:32:34.156+0000 [ERROR] [system.err] 	at java.base/java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:460)
2024-04-02T14:32:34.2035062Z 2024-04-02T14:32:34.158+0000 [ERROR] [system.err] 	at org.gradle.launcher.daemon.server.exec.DaemonConnectionBackedEventConsumer$ForwardEvents.getNextEvent(DaemonConnectionBackedEventConsumer.java:72)
2024-04-02T14:32:34.2038111Z 2024-04-02T14:32:34.155+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-04-02T14:32:34.2041997Z 2024-04-02T14:32:34.158+0000 [ERROR] [system.err] 	at org.gradle.launcher.daemon.server.exec.DaemonConnectionBackedEventConsumer$ForwardEvents.run(DaemonConnectionBackedEventConsumer.java:59)
2024-04-02T14:32:34.2044869Z 2024-04-02T14:32:34.155+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-04-02T14:32:34.2048123Z 2024-04-02T14:32:34.162+0000 [ERROR] [system.err] Exception in thread "pool-5-thread-1" java.lang.OutOfMemoryError: Java heap space
2024-04-02T14:32:34.2050608Z 2024-04-02T14:32:34.155+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-04-02T14:32:34.2053965Z 2024-04-02T14:32:34.163+0000 [ERROR] [system.err] 	at java.base/jdk.internal.misc.Unsafe.allocateUninitializedArray(Unsafe.java:1375)
2024-04-02T14:32:34.2056216Z 2024-04-02T14:32:34.156+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-04-02T14:32:34.2059335Z 2024-04-02T14:32:34.170+0000 [ERROR] [system.err] 	at java.base/java.lang.StringConcatHelper.newArray(StringConcatHelper.java:497)
2024-04-02T14:32:34.2061581Z 2024-04-02T14:32:34.156+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-04-02T14:32:34.2063756Z 2024-04-02T14:32:34.170+0000 [ERROR] [system.err] 	at java.base/java.lang.String.join(String.java:3269)
2024-04-02T14:32:34.2065510Z 2024-04-02T14:32:34.170+0000 [ERROR] [system.err] 	at java.base/java.lang.String.join(String.java:3335)
2024-04-02T14:32:34.2068107Z 2024-04-02T14:32:34.170+0000 [ERROR] [system.err] 	at org.sonar.plugins.common.InputFileContext.<init>(InputFileContext.java:78)
2024-04-02T14:32:34.2070317Z 2024-04-02T14:32:34.170+0000 [ERROR] [system.err] 	at org.sonar.plugins.common.Analyzer.lambda$buildInputFileContexts$4(Analyzer.java:114)
2024-04-02T14:32:34.2072746Z 2024-04-02T14:32:34.170+0000 [ERROR] [system.err] 	at org.sonar.plugins.common.Analyzer$$Lambda$3892/0x00007fced43f0640.run(Unknown Source)
2024-04-02T14:32:34.2075201Z 2024-04-02T14:32:34.170+0000 [ERROR] [system.err] 	at org.sonar.plugins.common.thread.ParallelizationManager.lambda$submit$0(ParallelizationManager.java:60)
2024-04-02T14:32:34.2079889Z 2024-04-02T14:32:34.170+0000 [ERROR] [system.err] 	at org.sonar.plugins.common.thread.ParallelizationManager$$Lambda$3893/0x00007fced43f0868.run(Unknown Source)
2024-04-02T14:32:34.2082429Z 2024-04-02T14:32:34.170+0000 [ERROR] [system.err] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
2024-04-02T14:32:34.2084845Z 2024-04-02T14:32:34.170+0000 [ERROR] [system.err] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
2024-04-02T14:32:34.2086759Z 2024-04-02T14:32:34.171+0000 [ERROR] [system.err] 	at java.base/java.lang.Thread.run(Thread.java:840)
2024-04-02T14:32:35.0020440Z 2024-04-02T14:32:34.971+0000 [ERROR] [system.err] Exception in thread "pool-5-thread-2" java.lang.OutOfMemoryError: Java heap space
2024-04-02T14:32:39.7019369Z 2024-04-02T14:32:39.643+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-04-02T14:32:39.7022521Z 2024-04-02T14:32:39.643+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.```
1 Like

Hello @HermannGruber ,

thanks for reporting the issue you’re facing.

We recently changed the Secrets analysis (TextAndSecretsSensor) to be able to benefit from multi-threading. This speeds up the analysis of the Secrets analysis but also consumes more memory as multiple files are analyzed at the same time.

There are two options how to solve the OOM:

  1. Giving more memory to the analysis in order to not run into the OOM and benefit from the parallelization of the secrets analyzer
  2. Setting the property sonar.text.threads to 1 when executing the scanner in order to force the secrets analyzer to not parallelize the analysis.

You can find additional information here: SonarCloud Documentation → Secrets → Parallel-Code-Scan

Please let me know if that solves your problem.

Best,
Jonas

2 Likes

@jonas.wielage thanks, we’ll give it a shot! We strongly suspect that the sonar task suffers from memory pressure. If the job runs into OutOfMemoryExceptions, it does so after almost 6 hours (before, it took a few minutes until the task finished). Sometimes it did not run into these exceptions, but GitHub canceled the job after a 6hr timeout in that case. Also, we want to track down whether there is a code change in our codebase, with which the problems started. I will post here if we find a solution, or otherwise have a new status on this.

We found that the memory leakage is not related to changes in our codebase. We then did a few experiments with configuration.

We added a sonar-project.properties file with the following keys, to narrow down the analysis scope.

sonar.projectKey=
sonar.organization=
sonar.sources=
sonar.tests=
sonar.exclusions=
sonar.test.exclusions=

While it seems a good idea to be more specific about what should (not) be analyzed, this did not decrease the memory pressure.

Setting the property sonar.text.threads to 1 did also not help, so we did not keep this change.

Increasing the memory for the JVM via JAVA_OPTS in the GitHub action gradle/gradle-build-action did also not help (but see below!), so we did not keep this change.

The solution was to add a gradle.properties file, which specifies the initial memory (1 Gigabyte) and the memory limit (4 Gigabyte) for the JVM:

# Project-wide Gradle settings.

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx4g -Xms1g

On a side note, we also experimented with larger GitHub runners. With using ubuntu-latest-4-coresinstead of ubuntu-latest (which has 2 cores), we were able to reduce the analysis time by 50%. This effect is due to the doubled number of CPUs - and not increased memory, since already the runner with 2 cores has more than the 4g memory we had allow for the JVM via gradle.properties.

2 Likes

Thanks @HermannGruber, for your help on bringing this to our attention!

There is a similar tip in the SonarScanner for Maven #Troubleshooting article for dealing with the java.lang.OutOfMemoryError.

  • I’ll adapt it for the Gradle scanner docs page and update this post with the link when it’s published.
2 Likes

@kevin.hinz thank you, it is a great idea to include this in the docs for gradle.