Groups | Search | Server Info | Login | Register


Groups > comp.protocols.snmp > #231

SNMP4j: pdu.add() taking more time.

Newsgroups comp.protocols.snmp
Date 2016-12-30 07:57 -0800
Message-ID <c7f70255-e9cb-41a5-b722-972ca84cc729@googlegroups.com> (permalink)
Subject SNMP4j: pdu.add() taking more time.
From sanjyot bandal <sanjyotbandal@gmail.com>

Show all headers | View raw


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.

Back to comp.protocols.snmp | Previous | Next | Find similar


Thread

SNMP4j: pdu.add() taking more time. sanjyot bandal <sanjyotbandal@gmail.com> - 2016-12-30 07:57 -0800

csiph-web