We set jmxremote and saw what NiFi has a memory leak. GC can not clean located memory, and after 2-3 days NiFi starts to work strange(all the time tries switch primary, monitoring API does not answer).
We made the update of HDF from 3.0 to 3.1.
Our environment is production, therefore we are limited for actions.
In our flow, we use all standard processors and one ExecuteScript (ECMAScript)
If you know how to search leak source or have any idea how to search we will be grateful.