Bmis13
Bmis13

Reputation: 670

Thread Pool Executor Monitoring Requirement

In our production environments, we are using Thread Pool Executor to execute runntable task. I need to develop a Thread pool Heartbeat a monitoring system for Thread pool Executor Service:

Every 60 seconds, the requirement is to collect following statistic about the Thread Pooled Executor:

1) size of the thread pool

2) length of queue waiting for a thread (a duration or time task waited in blocking queue before thread executed )

3) Average wait time in queue during the last heartbeat interval

4) Current active thread

5) Current non active threads.

I wanted to know is there any existing framework or Thread pool Executor Service which will provide above reporting requirements.

Thanks,

BMis13

Upvotes: 2

Views: 3303

Answers (1)

dMb
dMb

Reputation: 9367

Are you using Spring? If I'm not mistaken Spring's implementation of ThreadPoolExecutor supports JMX.

Upvotes: 1

Related Questions