|Subject:||memory-leak - svn::repos instances are not destroyed properly|
|Date:||Thu, 29 Sep 2011 15:23:04 +0200|
|To:||bug-Alien-SVN [...] rt.cpan.org|
|From:||"m.voit" <m.voit [...] math.uni-goettingen.de>|
Hi, developing an application dealing with many repositories the existence of paths within that repositories had to be checked. Using something like: my $repos = SVN::Repos::open($localpath) or die "no such repo"; my $fs = $repos->fs; $ispath = $repos->fs->revision_root( $fs->youngest_rev )->is_dir($path); undef($fs); undef($repos); resulted in a persistent memory usage of approx. 300MB for ~ 3000 calls, though undefing the references of the objects. Attached is a small sample script, showing the problem with 1 million calls - resulting in 200M with nothing but the directory in question in the repository. Repository-size seems to matter. (the application uses near productive repos) running with libsvn1 1.6.6dfsg-2ubuntu1.3 libsvn-perl 1.6.6dfsg-2ubuntu1.3 perl 5.10.1-8ubuntu2.1 kind regards, Max Voit
Message body is not shown because sender requested not to inline it.