in reply to Re: Oh where has my memory gone?
in thread Oh where has my memory gone?

If you say goto &manager;, you're making a jump, not a call -- your stack remains constant.

Not quite accurate; it's not a jump: a new stack frame is set up, the current stack frame is replaced by the new one, then unwound, so you have two of the same size. The memory used might remain constant, though. </nitpick>

;-)

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^3: Oh where has my memory gone?
by Anonymous Monk on Jun 10, 2008 at 22:06 UTC
    Its still doing it, slowly but surely this script eats all the RAM available! 0.5, 0.9, 1.4, 25... Dead! Is there a better way of writing this? It seems simple enough, but eventually the script will end with the out of memory error.
      Sorry for that... Although perl was eating a ton of memory, it ended up being other processes as well. Thank god for SWAP!