That just means that the module does get_next_request's to walk the logical column of the snmp table. Once the walk result is no longer a child of the argument, it stops and returns. I dumped $result6 and it's contents were exactly what I expected. I dumped it pre and post execution and it starts off undef and then gets just the routing table data I want. So no surprises there.

I also dumped $session pre and post build and pre and post destruction. No surprises there either. It only retains data from the last snmp call and after the close method is called it doesn't contain any snmp data, just the object definition. I think I know why the routing info blows up the script though. These routing tables can get up to 620 K and if some leaked variable is hanging onto them then that will add up fast. That would also mean that all the calls are leaking, just that they contain less data.


In reply to Re^6: Massive Perl Memory Leak by wagnerc
in thread Massive Perl Memory Leak by wagnerc

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.