This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/master by this push:
     new fc44a97d26 Add dump on OOM (#11223)
fc44a97d26 is described below

commit fc44a97d2626fbe5488a90c9bd55fabbb8c7cf74
Author: Tamas Cservenak <[email protected]>
AuthorDate: Wed Oct 8 21:24:05 2025 +0200

    Add dump on OOM (#11223)
    
    And upload it to have it inspected.
---
 .github/workflows/maven.yml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 91a0c22731..19a0265f14 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -35,6 +35,7 @@ env:
   MIMIR_VERSION: 0.9.4
   MIMIR_BASEDIR: ~/.mimir
   MIMIR_LOCAL: ~/.mimir/local
+  MAVEN_OPTS: -XX:+HeapDumpOnOutOfMemoryError 
-XX:HeapDumpPath=./target/java_heapdump.hprof
 
 jobs:
   initial-build:
@@ -198,7 +199,9 @@ jobs:
         if: failure() || cancelled()
         with:
           name: ${{ github.run_number }}-full-build-artifact-${{ runner.os 
}}-${{ matrix.java }}
-          path: '**/target/surefire-reports/*'
+          path: |
+            **/target/surefire-reports/*
+            **/target/java_heapdump.hprof
 
   integration-tests:
     needs: initial-build
@@ -282,4 +285,6 @@ jobs:
         if: failure() || cancelled()
         with:
           name: ${{ github.run_number }}-integration-test-artifact-${{ 
runner.os }}-${{ matrix.java }}
-          path: ./its/core-it-suite/target/test-classes/
+          path: |
+            ./its/core-it-suite/target/test-classes/
+            **/target/java_heapdump.hprof

Reply via email to