Java build out of memory

We are scanning our largest repo GitHub - odpi/egeria: Egeria core

I’ve noticed incomplete build results, and on checking the log see that the build does not complete with:

Caused by: java.lang.OutOfMemoryError: Java heap space

In our lift.toml we currently only have:

 jdkVersion = "17"
 build = "./gradlew -x test -x javadoc  build"

In our gradle.properties
org.gradle.jvmargs=-Xmx4096m

I’ve not seen issues elsewhere.

What are the memory limits for the sonatype scan?

1 Like

Hi Nigel,
Sorry to hear that it’s not working. The build environment has enough memory to support your build settings. We believe this is a bug in one of the Gradle APIs we use to get the dependencies. We’re looking into some solutions that will allow us to workaround this current issue. I’ll post an update when I have better information from the team.

  • Matt
1 Like

Thanks for the quick update