Re: Memory leak in sub-agents

This is a discussion on Re: Memory leak in sub-agents within the SNMP Users forums, part of the Networking and Network Related category; Hi, Sorry for mistake i am using netsnmp_register_table(my_handler, table_info); instead of netsnmp_register_table_iterator(my_handler, table_info); Whenever i enter the Handler ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-25-2005
Sasikumar Bodathula
 
Posts: n/a
Default Re: Memory leak in sub-agents

Hi,

Sorry for mistake i am using
netsnmp_register_table(my_handler, table_info);

instead of
netsnmp_register_table_iterator(my_handler, table_info);

Whenever i enter the Handler i process the request i.e. send the
request to the EMS and get the response.

Whenever getnext or walk on the table is performed the sub-agent
memory keeps on growing. Is there any fix for this problem.

On Mon, 2005-04-25 at 14:46, Dave Shield wrote:
> On Mon, 2005-04-25 at 09:51, Sasikumar Bodathula wrote:
> > I am not populating the data locally(requirement) instead i pass
> > the request to the EMS and the response is passed to the snmpd....
> > .... hence there is no need for get_first and get_next methods.

>
> OK - then you shouldn't be using the iterator helper.
> This helper *does* rely on the get_first/get_next hooks.
>
> If you're handling the indexing yourself, then you'd probably
> be better off using 'netsnmp_register_table' instead.
>
> Dave
>




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:05 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0