Hi,

 

This is my understanding about the below described problem.

The Net-SNMP Library saves each request to an "outstanding requests
list" for comparing it with the responses.

It also saves the PDU for retransmission, if needed.

 

I believe when there is no response coming from the agent, these
information get stuck in the memory forever.

And these PDUs and the increasing "outstanding requests list" may be
reason behind the memory leak.

 

My questions are:

After the timeout/expire value, are these information automatically
deleted?

Or it resides in the memory waiting for the user to delete them
explicitly?

Is there any API to detect these so that we can free them up manually?

 

Thanks,

Basil Joseph.

 

=====================================================================

>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.

 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to