Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Oh where has my memory gone?

by shmem (Chancellor)
on Jun 09, 2008 at 21:02 UTC ( [id://691100]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://691100]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2024-04-25 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found