Skip Menu |
 

This queue is for tickets about the SNMP CPAN distribution.

Report information
The Basics
Id: 30432
Status: new
Priority: 0/
Queue: SNMP

People
Owner: Nobody in particular
Requestors: rlandrito [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 5.0401
Fixed in: (no value)



Subject: memory leak when using gettable()
Download (untitled) / with headers
text/plain 408b
The memory footprint increases with every iteration of a loop over $session->gettable(); (see attached script) Memory footprint does not increase when get $session->get() is used instead. Let me know if you need more info. Thanks! Debian Sid Linux rossi 2.6.22-2-686 #1 SMP Fri Aug 31 00:24:01 UTC 2007 i686 GNU/Linux Perl v5.8.8: This is perl, v5.8.8 built for i486-linux-gnu-thread-multi SNMP 5.0401
Subject: snmp-leak.pl
Download snmp-leak.pl
text/x-perl 221b
#!/usr/bin/perl # use strict; use SNMP; my $session = new SNMP::Session (DestHost => 'myhost', Community => "public", Version => 1); my $table; while (<STDIN>) { $table = $session->gettable('ifTable'); }


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.