Gradle daemon crashed when building with sonarqube

Hey all.

I found this issue on Gradle’s side:

This part seemed important:

One of the key defaults set by Gradle is -XX:MaxMetaspaceSize=256m, which is required because this value is unbounded on the JDK by default, allowing the Gradle daemon to consume more and more native memory until it crashes.

This means that a user setting org.gradle.jvmargs=-Xmx4g can result in daemon crashes, unless the user knows that they must also add a -XX:MaxMetaspaceSize setting.

@Shudy To start – can you try adding -XX:MaxMetaspaceSize=256m?

1 Like