NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
You are here: Tasks Web>Item2286 (13 Nov 2009)

Item2286: looking into why the unit test FoswikiSuite? uses more memory over time

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal New Engine    
basically, I am wondering if there's a memory leak that will show up in run time, or if its just sloppy test code (I'm beginning to think the latter.)

-- SvenDowideit - 24 Oct 2009

Touch of over-enthusiasm there; clearing the static session object in extender.pl is going to blow away any installation checkins after the first. Need:

Index: extender.pl
===================================================================
--- extender.pl   (revision 5505)
+++ extender.pl   (working copy)
@@ -161,9 +161,6 @@
 # Can't do this until we have setlib.cfg
 require Foswiki::Configure::Dependency;
 
-$session->finish();
-undef $session;
-
 sub remap {
     my $file = shift;

-- CrawfordCurrie - 13 Nov 2009

ItemTemplate edit

Summary looking into why the unit test FoswikiSuite? uses more memory over time
ReportedBy SvenDowideit
Codebase 1.0.7, trunk
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Engine
Component
Priority Normal
CurrentState New
WaitingFor
Checkins Foswikirev:5373 Foswikirev:5375 Foswikirev:5392 Foswikirev:5506
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r5 - 13 Nov 2009 - 12:46:35 - CrawfordCurrie
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads