Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: Perl Program - Out of memory?

by jdlev (Scribe)
on Nov 15, 2013 at 20:58 UTC ( #1062796=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Perl Program - Out of memory?
in thread Perl Program - Out of memory?

Tried setting the delay to 0 and no dice. It just get's to the "Out of Memory!" error much faster (which will help in tracking down the issue). Is there a way to track down memory leaks in perl?

I love it when a program comes together - jdhannibal


Comment on Re^4: Perl Program - Out of memory?
Re^5: Perl Program - Out of memory?
by taint (Chaplain) on Nov 15, 2013 at 21:13 UTC
    Hmm... "Out of memory faster". Why not try the other direction; bump up the sleep time, a bit, and see what that does.

    --Chris

    #!/usr/bin/perl -Tw
    use Perl::Always or die;
    my $perl_version = (5.12.5);
    print $perl_version;
Re^5: Perl Program - Out of memory?
by BrowserUk (Pope) on Nov 16, 2013 at 15:12 UTC
    Is there a way to track down memory leaks in perl?

    Your code isn't leaking memory. It is just using more than it has available.

    At least, that is what I strongly suspect, but given that you've stopped answering questions, there's no way to derive a definitive conclusion.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-07-31 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (245 votes), past polls