[SNMP4J] Asynchronous SNMP Requests

Holger Grütjen HGruetjen at advaoptical.com
Fri Aug 3 12:15:43 CEST 2007


I have one instance of Snmp, which uses a MultiThreadedMessageDispatcher with a fixed thread pool size of 60.

My problem: When I'm sending more than 60 SNMP requests (with method snmp.send(pdu, targetGet, userHandle, responseListener)) in a short period of time to different network elements, then the processing of the incoming responds behaves strange in two points:

1) all SNMP requests > 60 are blocking for a while, and then return with a SNMP timeout
2) all SNMP requests < 60 are blocking too, but after the timeout mentioned in 1) they are processed normally

What I would expect is that all SNMP requests < 60 are processed as normal (within milliseconds), and that all SNMP requests > 60 are processed with a slight delay (after some threads become reusable again).

Is my expectation wrong? Is there any way to achieve this?

Best Regards,
Holger



More information about the SNMP4J mailing list