• SNMP4j: pdu.add() taking more time.

    From sanjyot bandal@21:1/5 to All on Fri Dec 30 07:57:49 2016
    Hi,
    I was facing performance issue, pdu.add() is taking more time.
    Ex: pdu.add(new VariableBinding(new OID(oid))), where oid gets looked up from in-memory-compiled MIB files (Using SmiManager).
    I was running a loop in which pdu.add gets called, each time for adding 1 new VariableBinding into pdu.
    I have used PDU.GET, as PDU.GETBULK is not appropriate for my usecase.
    Finally Asynchronous snmp.send is used.

    Observed that major time is spent in the pdu.add() part, whereas snmp.send completes in very less time.
    Is there any alternative way to do it ? Or please correct me if I am using wrong way.

    Thanks in advance.
    Regards,
    Sanjyot.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)