Hi Wes I have just tested the new code from CVS - I didn't do a diff to see the changes - just compiled and installed over what I had. I bombarded the snmptrapd with traps and saw the memory utilisation grow from 10MB to 50MB in a few minutes.
Can I do some further testing here to help out debugging? Thanks Andy -----Original Message----- From: Wes Hardaker [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 1:17 AM To: Andy Ford Cc: Wes Hardaker; Net-Snmp (E-mail) Subject: Re: Are there any examples of SNMP::TrapSession - I'll be darnedIf I can get it to work! >>>>> On Mon, 25 Apr 2005 17:08:20 +0100, "Andy Ford" <[EMAIL PROTECTED]> said: Andy> Wes - thanks for responding with a patch. Unfortunately, it Andy> didn't work. I limited my perl script to the following but the Andy> memory issue still persists... Andy, I've spent *waaaayyy* to much time tracking this down. I now know quite a bit more about perl internal programming, which I always meant beef up my knowledge on. I doubt I'll remember it tomorrow though (sigh). Anyway, the main-line CVS TrapReceiver.xs file is now completely memory leak free. Note that there are a number of things you should consider when debugging memory with snmptrapd: 1) get the latest TrapReceiver.xs from cvs as mentioned above (I can mail it to you if you really can't get to the cvs tree; see http://www.net-snmp.org/cvs/ for details). 2) note that snmptrapd keeps logs around of the last few traps sent to it. This will make it appear that memory is growing, though it should eventually top out. To turn this off so it never saves anything, put this following line in your snmptrapd.conf file: dontRetainLogs true With those two in place my process never grows and vagrind shows no leaks. -- Wes Hardaker Sparta, Inc. 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. ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix _______________________________________________ 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/listinfo/net-snmp-users