Re: Scotty mem usage growing

Cary B. O'Brien (cobrien@access.digex.net)
Fri, 25 Jul 1997 08:43:40 -0400 (EDT)

>
> Hi there,
>
> I'm writing my own little SNMP Agent using Scotty v2.1.5. The objective
> is to support the HOST MIB-II tree on various platforms (school work).
>
> However, once my agent has been running for a while (say 24 hours),
> the scotty process memory usage gets huge. In fact, I "don't have
> memory to fork off process" then and the program crashes :) It uses
> a small program to do some low-level snooping (syscalls).
>
> The memory leak doesn't happen if I comment the following lines of
> my code:
>
> proc setMIB {var val} {
> global s
> $s instance $var $var $val
> }
>

Are you doing this once, per instance, on startup, or all the time?
I _think_ you should only do this during startup to define the instances
that the agent will respond to.

> So this instance stuff is acting weird. Can I "uninstance" a variable
> before updating it? If I don't do that, obviously, the scotty program
> get bigger and bigger until it crashes :( I'm updating the variables in
> the HOST MIB-II tree once every 30th second.
>
> Does anyone have a clue what has gone wrong here? Does Scotty v2.1.6
> fix the problem? Please anyone?
>

I haven't seen a memory leak with our SNMP agent yet, but I'll keep
looking.

-- Cary O'Brien
cobrien@access.digex.net

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.