adoptium / github-release-scripts

Scripts for release artefacts to GitHub releases
Apache License 2.0
6 stars 20 forks source link

release tool "out of heap space" failure #149

Closed andrew-m-leonard closed 7 months ago

andrew-m-leonard commented 7 months ago

https://ci.adoptium.net/job/build-scripts/job/release/job/refactor_openjdk_release_tool/8197/

Uploading OpenJDK11U-debugimage_x64_mac_hotspot_11.0.23_2-ea.tar.gz.json
Uploading OpenJDK11U-sbom_aarch64_mac_hotspot_11.0.23_2-ea.json.sig
Uploading OpenJDK11U-testimage_s390x_linux_hotspot_11.0.23_2-ea.tar.gz
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:3236)
    at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
    at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
andrew-m-leonard commented 7 months ago

After much debugging, found the correct way of setting the gradle application JVM options via the Application plugin settings in the build.gradle It does however need a large 2g heap to succeed for the failing jdk11u publishes.

The new jenkins_worker has jdk-21, so had to upgrade gradle to support that.