NiFi diagnostics
It is possible to run diagnostics on NiFi with
$ ./bin/nifi.sh --diagnostics --verbose <dumpfilePath>
During the diagnostic, NiFi sends a request to an already running NiFi instance, which collects information about clusters, components, part of the configuration, memory usage, etc., and writes it to the specified file or, failing that, to the logs.
The verbose switch is optional and can be used to control the level of diagnostic detail. In case of a missing dump file path, NiFi writes the diagnostics information to the bootstrap.log file.