Skip to content

Commit e499c5c

Browse files
dweissjpountz
authored andcommitted
Dump hprof on OOM from tests apache#14481
1 parent 944f0a3 commit e499c5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gradle/testing/defaults-tests.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ allprojects {
127127
// (if the runner JVM does not support them, it will fail tests):
128128
jvmArgs '--add-modules', 'jdk.management'
129129

130+
// dump heap on OOM.
131+
jvmArgs "-XX:+HeapDumpOnOutOfMemoryError"
132+
130133
// Enable the vector incubator module on supported Java versions:
131134
def prop = propertyOrDefault("org.apache.lucene.vectorization.upperJavaFeatureVersion", "1") as String
132135
def v = JavaVersion.toVersion(Integer.parseInt(prop)).majorVersion

0 commit comments

Comments
 (0)