Re: Memory consumption of PyDS

Rudy Schockaert <[email protected]> Tue, 13 Apr 2004 10:44:55 +0200
Newsgroups gmane.comp.pythin.pyds.devel
Message-ID <[email protected]>
Georg Bauer wrote:

> Hi!
>
> Am Dienstag, 13.04.04 um 01:58 Uhr schrieb Jeremy Bowers:
>
>> to create a bona-fide memory leak in pure Python. However, I was 
>> playing with weakrefs and circular structures which almost certain 
>> exacerbated the problem; PyDS doesn't use weakrefs so I would hope 
>> this wouldn't apply.
>
>
> Oh, but it does use weakrefs ...
>
> But I would say that's a bug if the weakref usage in PyDS really 
> triggers memory leaks, as  it's mostly stuff like "getToolByNamespace" 
> and similar situations where weakrefs are used - so both weakrefs and 
> normal refs would go out of scope anyway. Weakrefs came into play with 
> 0.7.1, I think.
>
> I will check your gc.get_objects hint. Should be doable with a page in 
> the StatusTool and some code that formats the output.
>
> bye, Georg
>
As I promissed I ran the performance monitor to collect memory 
statistics. The results are here: 
http://www.pycs.net/users/0000276/2004/04/13.html

I'll try to dump the gc.get_objects too.

Rudy

-- 

"If A is success, then A=x+y+z. Work is x, y is play and z is keeping your mouth shut." - Albert Einstein