Memory leak when creating lots of object
Paul Moore
p.f.moore at gmail.com
Wed Aug 15 11:13:47 EDT 2007
On 14 Aug, 05:57, Godzilla <godzillais... at gmail.com> wrote:
> Hello,
>
> I have a program that create and pop an object off a queue, but it is
> experiencing some memory leakage. I have been unable to detect where
> the memory leakage occur. The strange thing is when i replace the
> object creation with a plain integer/string, the leak goes away...
> Here's the code I used as my test:
[...]
> I can see the memory usage increases slowly in Task Manager under XP,
> but do not know why. Anyone help?
I tried your code on my (Windows XP SP2, Python 2.5) system. No memory
leak here - I left it running for over 5 minutes and memory usage was
static at just under 4MB.
Do you see memory growth with precisely this code? Over what period?
How much?
Paul.
More information about the Python-list
mailing list