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

comment on

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

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":



  • 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 romping around the Monastery: (3)
As of 2024-03-19 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found