Hi Stuart, I will try your suggested mod. So far, I have tried reinstalling the net-snmp-5.7.2 package configuring it with --disable-snmptrap-subagent and --with-out-mib-modules=notification_log_mib and that seems to have helped to either slow down the memory leak or eliminated it. I have now also applied the mod you suggested and will let it run for a while. I still see very small memory creep up but no sure if that is just because other processes are fluctuating the memory usage or if the net-snmp snmptrapd daemon is still leaking a little bit at at time with each trap received. Time will tell.
Thank You! Bill Yee -----Original Message----- From: Stuart Henderson [mailto:s...@spacehopper.org] Sent: Tuesday, December 11, 2012 8:14 PM To: William Subject: [s...@spacehopper.org: Re: NET-SNMP v5.7.2 Memory Leaks issues running snmptrapd.] Forwarded copy, in case my list mail doesn't make it through .. If you don't see my copy show up on the list, please make sure you quote the full text if replying there. cheers Stuart ----- Forwarded message from Stuart Henderson <s...@spacehopper.org> ----- From: Stuart Henderson <s...@spacehopper.org> Date: Wed, 12 Dec 2012 01:07:02 +0000 To: net-snmp-coders@lists.sourceforge.net User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: NET-SNMP v5.7.2 Memory Leaks issues running snmptrapd. On 2012-12-10, William <wy...@nyc.rr.com> wrote: > Hi Gary, thanks for the suggestion. I tried commenting out that call > to > log_notifications() in the > /net-snmp-5.7.2/agent/mibgroup/notification/snmpNotifyTable.c program > file and recompiled the package with it. Ran snmptrapd and still has > memory leak. This leak with snmptrapd is coming from the log_notification() call in apps/snmptrapd_handlers.c but I haven't tracked it further than that. As was seen by others, I'm seeing approx 8KB/trap (in my case 5.7.2 on OpenBSD/amd64). If wanted, you can totally disable the mib by removing the line config_require(notification-log-mib) from agent/mibgroup/default_modules.h. (apologies for the lack of thread headers in my mail, I normally use gmane for lists, but it's been set to disable posting for this list). ----- End forwarded message ----- ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders