Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Merge log files causing Out of Memory

by neilwatson (Priest)
on Aug 24, 2016 at 15:18 UTC ( #1170331=note: print w/replies, xml ) Need Help??


in reply to Merge log files causing Out of Memory

You might try Test::Memory::Cycle to look for issues.

Neil Watson
watson-wilson.ca

  • Comment on Re: Merge log files causing Out of Memory

Replies are listed 'Best First'.
Re^2: Merge log files causing Out of Memory
by afoken (Abbot) on Aug 24, 2016 at 21:38 UTC
    You might try Test::Memory::Cycle to look for issues.

    How could Test::Memory::Cycle help finding inefficient (and insecure) code like @data = `cat $dirtoget/decrypt/sample.log`; that reads probably huge log files into memory?

    The most complex data structures used in this script, apart from the $seen{$_}++ variant in get_dirs(), are arrays of strings. There is not a single trace of using references that could create circular references. How could Test::Memory::Cycle help here?

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2019-04-25 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (127 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!