Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

If you give us more information we should be able to help. Meanwhile, these old nodes might give you a clue as to what your problem might be.

Using this node for Memory Tools References nowadays:

General Areas to consider when faced with a Memory Leak

  • Stability: Once your process grows to a certain size, does it stay there, or does it grow further over time?
  • Large CPAN Modules. Are you using any?
  • Circular references. See Eliminate circular reference memory leak using weaken (Perl Maven).
  • Scoping.
  • File/Database handling.
  • Tools. Try one or more from the following section.

Perl Tools and Advice

  • Mini-Tutorial: Perl's Memory Management by ikegami
  • As pointed out by dave_the_m: "once the perl interpreter has exhausted all memory, there's very little it can do. There is a reserved fixed buffer to allow it to display the OOM error itself, but doing anything complex like displaying a Carp::confess()-like stack backtrace would require many memory allocations to generate the display, all of which would themselves fail".

General Tools

  • Clang (Clang is a compiler front end for the C, C++, Objective-C, and Objective-C++ programming languages ... includes a static analyzer, and several code analysis tools ... Clang operates in tandem with the LLVM compiler back end)
  • LLVM (LLVM is a set of compiler and toolchain technologies that can be used to develop a front end for any programming language and a back end for any instruction set architecture ... designed around a language-independent intermediate representation (IR) that serves as a portable, high-level assembly language that can be optimized with a variety of transformations over multiple passes)
  • Boehm garbage collector aka Boehm–Demers–Weiser garbage collector (wikipedia)

Static Code Analysis

Code Profiling and Optimization

Testing Concurrent Software

Security Testing

Some Related PM Nodes

More Nodes Added Later

See Also

Updated: Many extra references were added long after the original reply was made.


In reply to Re: Perl Memory problem ... (Memory Tools References) by eyepopslikeamosquito
in thread Perl Memory problem ... by Sascha2018

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-29 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found