G'day Carl,

Welcome to the monastery.

There are a number of potential reasons why you're seeing this behaviour; it may not be limited to a single cause. There may be problems in your code, in modules you're using or both. Perhaps data is being continually added to some variable which is simply growing over time; perhaps you have an issue with Circular References; perhaps it's something else.

So, without having seen your code, it's rather difficult (as I'm sure you'll appreciate) to either identify the problem or advise how to deal with it.

If you can track down the problem to some part of your code, that would be a start. Test::LeakTrace may be helpful here. There's also a number of tools in CPAN: Development Support that might be useful.

Take a look at the documentation for any modules you're using. There may be caveats regarding memory issues (and possibly workarounds). Also check for any bug reports that might be related: there may be fixes in more recent modules, patches you can apply or workarounds you can use. There may be modules with similar functionality (but without the same problems) that you could use instead.

If you identify where in your code the problem lies but don't know how to fix it, you can post that code here and ask a more specific question. If you do this, you'll get the best answers if you follow the guidelines in "How do I post a question effectively?".

-- Ken


In reply to Re: How to deal with the fact that Perl is not releasing memory by kcott
in thread How to deal with the fact that Perl is not releasing memory by carlbolduc

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.