Memory leak in Python

Serge Orlov Serge.Orlov at gmail.com
Thu May 11 10:24:56 EDT 2006


diffuser78 at gmail.com wrote:
> I ran simulation for 128 nodes and used the following
>
> oo = gc.get_objects()
> print len(oo)
>
> on every time step the number of objects are increasing. For 128 nodes
> I had 1058177 objects.
>
> I think I need to revisit the code and remove the references....but how
> to do that. I am still a newbie coder and every help will be greatly
> appreciated.

The next step is to find out what type of objects contributes to the
growth most of all, after that print several object of that type that
didn't exist on iteration N-1 but exist on iteration N




More information about the Python-list mailing list