[SNMP4J] Multithreading Issues with Snmp4j

Akshat Kakkar the_akshat at yahoo.co.in
Wed Aug 10 10:25:13 CEST 2016


Hi!I am using snmp4j version 2.2.1 for my java development. When I am sending snmp-get query to 1 or 2 device in parallel, then I am seeing that following code is taking around 15-16 mill seconds.
Snmp snmp = new Snmp(dutm);snmp.send(sendPDU, udpTarget, null, responseListener);
However, if I increase number of threads from 2 to 100, above code takes around 100 milli seconds.And if number of threads are increased to 500, time taken by above code increases to around 650 milli seconds.I am measuring time by using System.nanoTime() method in Java.
Can anyone please help to explain this?

-Akshat



More information about the SNMP4J mailing list