JVM Out Of Memory

Expiring Daemon because JVM heap space is exhausted
Error: Exception in thread "OkHttp TaskRunner" java.lang.OutOfMemoryError: Java heap space
Expiring Daemon because JVM heap space is exhausted
Expiring Daemon because JVM heap space is exhausted
> Task :sonar
Slowest analyzed files (batch mode enabled):
somefile(49957ms, 69755B)

Did not optimize analysis for any files, performed a full analysis for all 2 files.

FAILURE: Build failed with an exception.

  • What went wrong:

Task :sonar FAILED

Execution failed for task ‘:sonar’.

Java heap space

any idea how to fix this?
this happened when running ./gradlew sonar on github action

Hi,

Did you try granting more heap space?

Also, there are only two files in your project? Would you mind sharing approximately how large they are?

 
Thx,
Ann