On Mon, 18 Mar 2002, Todd Volkert wrote:
> Run the following within an AOLServer process, and you'll notice your free
> memory dwindle:
>
> set n 1000
> set o 500
> for {set i 0} {$i < $o} {incr i} {
> for {set j 0} {$j < $n} {incr j} {
> set myArray${i}_${j}(foo${j}) bar{$j}
> }
> }
>
> The thread that runs this block loses all references to the arrays you
> created, yet the memory taken up by your process grows substantially...
>
> [...]
>
> What gives? Is this a memory leak in tcl itself, is the garbage collector
> simply slow to react, or is there something else?
AOLserver uses a "high water mark" approach for efficiency (if you
allocate that memory once you'll probably need it again later). See Jeff
Hobb's message from an earlier thread last month:
http://listserv.aol.com/cgi-bin/wa?A2=ind0202&L=aolserver&P=R2200
Michael