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

Re: Perl Memory problem ... (Memory Tools)

by eyepopslikeamosquito (Bishop)
on May 10, 2020 at 05:49 UTC ( #11116639=note: print w/replies, xml ) Need Help??

in reply to Perl Memory problem ...

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:

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

  • 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

Static Code Analysis

Testing Concurrent Software

See also: Re: Threads or no Threads (Threading and Concurrency Links)

Security Testing

Some Related PM Nodes

Nodes Added Later

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2022-01-26 16:40 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (69 votes). Check out past polls.