java.lang.OutOfMemoryError: Java heap space

Hello,
In background tasks, I see a error message details are shown in the images. It is a quite large monorepo. can you please help us to resolve it ?

SonarQube Enterprise 9.9 LTS
Github Actions


+
image

You’ll (or a server admin / ops person) will need to adjust the amount of heap space available to the Compute Engine.

You can find these settings (sonar.ce.javaOpts) in the conf/sonar.properties file of your SonarQube instance, or if your instance is deployed by Docker, by adjusting the appropriate Environment variable. Any change will require restarting the SonarQube service.

I suggest doubling the defaults to start, and see if that improves the situation.