Scotty mem usage growing

Sveinar Rasmussen (sveinarr@stud.cs.uit.no)
Fri, 25 Jul 1997 11:20:39 +0200 (METDST)

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
}

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?

_______________________________________________________________________
| Sveinar Rasmussen -*- Attend master of comp.sci. engineering course |
| sveinar@rasmussen.org -*- http://www.cs.uit.no/~sveinarr/ |

--
!! 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.