From 3fff74371479b219562915e9d406e2ee0eaab4c1 Mon Sep 17 00:00:00 2001 From: Matt Burgess Date: Fri, 11 Oct 2024 16:30:05 -0400 Subject: [PATCH] NIFI-13865: Enable the JVM to record a heap dump when an OOM error occurs --- .../nifi-resources/src/main/resources/conf/bootstrap.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/conf/bootstrap.conf b/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/conf/bootstrap.conf index 09394b7afd9e..46823af96c9b 100644 --- a/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/conf/bootstrap.conf +++ b/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/conf/bootstrap.conf @@ -58,3 +58,5 @@ java.arg.securityAuthUseSubjectCredsOnly=-Djavax.security.auth.useSubjectCredsOn # org.apache.jasper.servlet.JasperLoader,org.jvnet.hk2.internal.DelegatingClassLoader,org.apache.nifi.nar.NarClassLoader # End of Java Agent config for native library loading. +java.arg.heapDumpPath=-XX:HeapDumpPath=./work +java.arg.heapDumpOnOutOfMemory=-XX:+HeapDumpOnOutOfMemoryError