[
https://issues.apache.org/jira/browse/NIFI-13865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888767#comment-17888767
]
David Handermann commented on NIFI-13865:
-----------------------------------------
As mentioned on the pull request, although this is very useful for
troubleshooting, it presents security issues due to the memory contents being
dumped to the file system.
> Add HeapDumpOnOutOfMemoryError settings to bootstrap.conf
> ---------------------------------------------------------
>
> Key: NIFI-13865
> URL: https://issues.apache.org/jira/browse/NIFI-13865
> Project: Apache NiFi
> Issue Type: New Feature
> Components: Core Framework
> Reporter: Matt Burgess
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> According to what I've read, we can add the following arguments to
> bootstrap.conf for the NiFi JVM:
> java.arg.heapDumpPath=-XX:HeapDumpPath=./work
> java.arg.heapDumpOnOutOfMemory=-XX:+HeapDumpOnOutOfMemoryError
> and it allows NiFi to do a heap dump whenever an OutOfMemoryError occurs.
> This could help diagnose OOM problems right after they happen which could
> make debugging the potential issues easier.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)