Support Questions

Find answers, ask questions, and share your expertise

How to calculate Nifi threads.

avatar
Contributor

65019-capture.png

Hi Team,

How to calculate Nifi threads. ? because in the screenshot it showing totally 68 threads its using but the actual used is only 12 so how to find the remaining threads details ??

Kinldy help on this.

65017-capture.png

11 REPLIES 11

avatar
Contributor
@Matt Clarke

Hi Bro need your inputs.

avatar
Contributor
@Bryan Bende

experts inputs required.

avatar
Master Mentor

@Anishkumar Valsalam

How are you determining that only 12 threads are actually being used?

The UI is merely a snapshot in time, it does not update in real time.

What version of HDF are you running?

What is "Max Timer Driven Thread Count" set to?

What is "Max Event Driven Thread Count" set to?

How many nodes in your NiFi cluster?

Thanks,

Matt

avatar
Contributor

We are running only two processor group and the overall usage you can see in the 2 PG ( 8 + 4).

Hdf - 3.0.1.0-43
Maximum Timer Driven Thread Count = 100

Max Event Driven Thread Count = 5

we have two nodes but it not configured as cluster.

avatar
Master Mentor

@Anishkumar Valsalam

In HDF 3.0 the thread stats in the status bar also reflect the total number of threads allocated to the Event Driven Thread pool. Is it possible the event driven thread pool was ever increased and then later reduced back to 5? Reductions to the Event Driven thread pool allocation will not take affect until a restart of NIFi.

avatar
Contributor
@Matt Clarke

Recently we didn't do any update and we have tried with restart also but still we are seeing differences in the thread values in status bar.

67533-capture.png

What actually we configured.

67534-capture.png

What actually running.

67535-capture.png

How this drastic differences ? pls help to close this.

avatar
Master Mentor

@Anishkumar Valsalam

TIP: Do not respond to an answer with a new answer. If you are responding to an existing answer thread, use comments.

The threads status total shown in the status bar can include threads active for things other then just processor components. For example: Controller Services and Reporting Tasks.

Thank you,

Matt

avatar
Master Mentor

@Anishkumar Valsalam

I honestly do not know how to extract that info from NiFi. If I find something out, I will update this thread.

avatar
Contributor

@Matt Clarke

How we can ensure that ? the remaining threads was using by other Ex :controller services / Reporting tasks.