MultiThreadedMessageDispatcher ThreadPool Size

Frank,

I am trying to query ~2000 device for ~40 oids every minute. I am using asynchronous table requests. What is an acceptable ThreadPool size for the MultiThreadedMessageDispatcher? I would assume since this is a listener that handles the processing of the requests, it would be CPU bound? Am I understanding that correctly?

Thanks,

Fred

Hi Fred,

There is no general answer to this question. If you only need to in-memory analyse the received OIDs with a simple algorithm, then size 1 might be already enough.
If there is blocking IO or long running analysis going on in the CommandResponder.processPdu callback method, then you might need a lot of threads in the pool.

Best regards,
Frank