Hi,

 

I am using Net-Snmp Libraries for my application, which will query a
network device statistics.

First it will query the sysUpTime.0 to check whether the device is up or
not.

Then will query the remaining things.

If the network device is turned off, it will query for sysUpTime.0 every
10 sec. 

 

Everything worked fine if the network device is turned on.

If it is powered off, it triggers a memory leak; causing the size of the
application to increase by 1mb every day.

 

I am using SNMPv3 with authnoPriv security level.

I am also setting the Engine-id of the network device in the PDU.

The PDUs are sent using the "snmp_async_send" API, because it is the
only non-blocking API.

That's is requirement that I should use only non-blocking APIs.

 

This API will return a non-zero value even if the other device is turned
off.

So I can't find whether this API succeeds in sending the PDU.

I think Net-SNMP is saving some of these information in memory to match
with the response to invoke the correct callback.

I believe this memory is not freed up, after the timeout.

 

So is there any mechanism(API) available in Net-SNMP that enables the
user to free up those resources?

Or is it an inherent feature of Net-SNMP?

 

Using Net-SNMP 5.7 in ARMv5b platform.

 

Thanks,

Basil Joseph.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to