Re: Memory leak on programmatic usage
"Jonathan Ellis" <[email protected]> Mon, 05 Mar 2007 07:04:29 -0800
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
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