in reply to Re^2: Massive Perl Memory Leak
in thread Massive Perl Memory Leak
Best guess. If you just commented out the two lines that call $$session->get_entries(...), you'd still not see the memory growth. Not that that would be surprising, as the rest of the code wouldn't be doing much of anything.
Looking at it from the other direction. Leave all the other code commented out and just call whichever of those two lines is appropriate--but do nothing with the results returned from the call--and the memory growth will return.
$session is a reference to the Net::SNMP object
Is that module thread safe? Are you reusing a single object to talk to multiple devices? Are you sharing one instance between threads?
You might be able to check whether the session object is accumulating data internally long after you have finished with it by using Devel::Size on $session after each call to get_entries()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Massive Perl Memory Leak
by wagnerc (Sexton) on Jun 14, 2007 at 18:30 UTC | |
by BrowserUk (Patriarch) on Jun 14, 2007 at 23:29 UTC | |
by wagnerc (Sexton) on Jun 15, 2007 at 19:06 UTC | |
by BrowserUk (Patriarch) on Jun 15, 2007 at 19:15 UTC | |
by wagnerc (Sexton) on Jun 15, 2007 at 02:20 UTC | |
by wagnerc (Sexton) on Jun 15, 2007 at 21:08 UTC | |
by BrowserUk (Patriarch) on Jun 16, 2007 at 13:50 UTC | |
by wagnerc (Sexton) on Jun 18, 2007 at 21:24 UTC | |
|