Thanks Robert for the patch, but I couldn't get it to work. I downloaded the latest CVS source and applied the patch (patched file attached)
I still have memory usage growing out of control. I am taking a look at snmptt and applying some modifications to the code for my own needs (as a stop gap!) Regards Andy -----Original Message----- From: Robert Story [mailto:[EMAIL PROTECTED] Sent: Saturday, April 02, 2005 12:55 AM To: Andy Ford Cc: Net-Snmp (E-mail) Subject: Re: Memory leakage in snmptrapd << File: snmptrapd-leak.pat >> On Tue, 29 Mar 2005 14:24:44 +0100 Andy wrote: AF> I am running snmptrapd with the Perl Traphandler and seeing a large amount AF> of memory usage. With no incoming traps, the memory utilisation of the AF> snmptrapd process is stable at 11MB. AF> AF> As traps are processed, memory utilisation rises considerably. After just AF> four days, the memory utilisation rose to over 500MB. I just tracked this down, and here is a quick patch to get around the problem til a real fix is found... -- <<snmptrapd.c>> NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. This e-mail is private and may be confidential and is for the intended recipient only. If misdirected, please notify us by telephone and confirm that it has been deleted from your system and any copies destroyed. If you are not the intended recipient you are strictly prohibited from using, printing, copying, distributing or disseminating this e-mail or any information contained in it. We use reasonable endeavours to virus scan all e-mails leaving the Company but no warranty is given that this e-mail and any attachments are virus free. You should undertake your own virus checking. The right to monitor e-mail communications through our network is reserved by us.
snmptrapd.c
Description: snmptrapd.c