Public bug reported:
Binary package hint: libdbd-mysql-perl
I think I found a memory leak in some point in Perl/Mysql
infraestructure. I am not sure that if it is in DBD::mysql, general DBI
or possible in libmysql-client, but it's very easy to reproduce the
memory leak:
#!/usr/bin/perl
use strict;
use warnings;
use DBI; # DB interface with MySQL
while (1){
keep_alive_check();
}
sub keep_alive_check {
my $dbh =
DBI->connect("DBI:mysql:pandora:localhost:3306","pandora","pandora",{
RaiseError => 1 });
$dbh->disconnect;
undef $dbh;
}
If you run this script, it lost aprox 32bytes per second. I calculated
that exactly lost 4 bytes per iteration. My library versions are:
Ubuntu Dapper (also tested with Debian Woody) with the same results.
/usr/local/lib/perl/5.8.7/DBD/mysql.pm
$VERSION = '3.0006';
/usr/lib/perl5/DBD/mysql.pm
$VERSION = '3.0002';
Please, if anybody knows something about this, contact me or post here
some light to the problem.
Thanks.
** Affects: libdbd-mysql-perl (Ubuntu)
Importance: Untriaged
Status: Unconfirmed
--
Memory Leak in DBD::Mysql
https://launchpad.net/bugs/51746
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs