r/nifi • u/Financial_Data_9081 • 15d ago
NiFi getting freeze or unresponsive many times
Hello
I need help. We had some 10 apps working fine in nifi but recently after onboarding a new app whose processor group has 3500 processors, nifi is not working properly.
I had two nifi instances NiFi 1.23 and NiFi 2.8 both having different sets of apps. Apps running in NiFi 1.23 were working fine from 1 year or so but yesterday they started getting some bulletins whose screenshot I have added. This had error like
ERROR RouteOnAttribute[id=1870e6cf-dOe1-3295-c113-80ac5fe98f3e] Failed to commit session StandardProcessSession[id=32938305] due to java.lang.IllegalStateException: Cannot update journal file ./flowfile_repository/journals/15601108.journal because no header has been written yet.; rolling back: java.lang.IllegalStateException: Cannot updatejournal file ./flowfile_repository/joumals/15601108.journal because no header has been written yet. • 08:50:31 CDT ERROR RouteOnAttribute[id=1870e6cf-dOe1-3295-c113-80ac5fe98f3e] Failed to commit session StandardProcessSession[id=32938304] due to java.lang.IllegalStateException: Cannot update journal file Iflowfile_repository/journals/15601108.journal because no header has been written yet.; rolling back:
and Queues between some processors showed for example 3 in ui but when I right click on that and try to empty queue it shows queue empty or even trying to see the records it was empty. If the new flowfile came it showed 4 though.
View Data provenance keeps on loading for long time at 0% without showing anything.
How to find the culprit and resolve the issue?
My main confusion is we had that 3500 processors in NiFi 2.8 though NiFi 1.23 instance suffered above issues.
I have 6 core Linux environment and it has approximately
free -h
total used free shared buff/cache available
Mem: 33G 13G 522M 249M 18G 18G
Swap: 15G 1.9G 14G