Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2015-07-07 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (90 votes), past polls