From a7d3b396108dce8c9f8b5cd50265139594c009f8 Mon Sep 17 00:00:00 2001 From: Daniel Arroyo Date: Wed, 12 Aug 2026 18:25:59 -0400 Subject: [PATCH] fix(ci): bump container memory to 8g and cap native-image xmx at 4g Native-image was OOM-killed (exit 137) during inlining phase. The runner has no implicit memory limit on container jobs, so native-image probed all available memory and got killed by the host OOM killer. Fix: - Set container options: --memory=8g (hard cap for the build container) - Pass -Dquarkus.native.native-image-xmx=4g to mvn (limits the native-image JVM heap to 4g, leaves 4g headroom for the rest of the toolchain: GraalVM, glibc, Maven, etc.) --- .gitea/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8ccc8fa..7118106 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -19,6 +19,7 @@ jobs: runs-on: ubuntu-latest container: image: maven:3.9.6-eclipse-temurin-21 + options: --memory=8g steps: - name: Install git, node, gcc, and basic tools run: | @@ -58,7 +59,7 @@ jobs: restore-keys: ${{ runner.os }}-node- - name: Build (Native) - run: mvn package -Pnative -B -DskipTests + run: mvn package -Pnative -B -DskipTests -Dquarkus.native.native-image-xmx=4g - name: Upload Native binary uses: actions/upload-artifact@v4