Re: Memory leak on programmatic usage

Iwan Vosloo <[email protected]> Wed, 07 Mar 2007 10:36:39 +0200
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
Ok, have tried our reproducing program on 2.2 now and the leak seems to
have disappeared. 

-i

On Mon, 2007-03-05 at 07:04 -0800, Jonathan Ellis wrote:
> What happens in 2.2?  Both the debug and the filter stuff has been
> reimplemented.
> 
> On Mon, 05 Mar 2007 09:59:40 +0200, "Iwan Vosloo" <[email protected]> said:
> > BTW,
> > 
> > if you print out more classes in the logIt function of that file, there
> > are several Spyce classes that leak besides the Response:
> > 
> > 1000     ocurrences of __main__.TestResponse
> > 1000     ocurrences of spyceLoader.FilterUnify
> > 1000     ocurrences of spyceLoader.myResponseWrapper
> > 1000     ocurrences of spyceLoader.response
> > 1000     ocurrences of spyceLoader.stdout
> > 
> > And, yes (Philip) they all go away when you turn debugging on.
> > 
> > -i
> > 
> > On Fri, 2007-03-02 at 13:00 +0200, Iwan Vosloo wrote:
> > > Hi there,
> > > 
> > > we have a memory leak when using Spyce programatically.  I attach a file
> > > that reproduces the problem.  (We're on Rev 1200 of the svn branch at
> > > https://svn.sourceforge.net/svnroot/spyce/branches/spyce-2.1 )
> > > 
> > > See the attached code: It seems that the TestResponse object passed to
> > > spyceStringHandler is never released... (One such object is added for
> > > each request made.)
> > > 
> > > I'd like to know if this leak is true for newer versions?  
> > > 
> > > Any help in finding the cause of the leak will be appreciated...
> > > 
> > > If you run the attached file, it will print out the number of instances
> > > of objects of class "TestRequest" and "TestResponse".  I only get
> > > TestResponses left over...
> > > 
> > > -i
> > > 
> > > -------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > > opinions on IT & business topics through brief surveys-and earn cash
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > _______________________________________________ Spyce-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spyce-users
> > 
> > 
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Spyce-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/spyce-users


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV