Devel::SoapSuds

Oh wait, this isn't the bike forums is it? ;)

Pure-Perl memory leaks are not too common. When they do occur I've found often they're related to an unintentional closure; thinking you've got a lexical passing out of scope when it really still has a reference to it staying in scope somewhere. Leaks caused by faulty XS programming might have greater potential for trouble. Your mileage may vary.

Of course there are other potential issues, and without seeing code we would have a hard time guessing what might be causing your specific problem. How about giving us a small example of the problem? I'm curious to see.

If you are suspicious of a particular variable, you could tie it to a class that carps a message when the variable goes out of scope. Then you could verify that it's happening as you intend. ...or tie it to a class that logs the length every time it's written to. That would also tell you a lot. But for that to be useful, you at least have to have a suspect variable in mind.

...just food for thought.


Dave


In reply to Re: Memory leak by davido
in thread Memory leak by vinoth.ree

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.