Coroutines, and memory leaks

Michael Hudson mwh21 at cam.ac.uk
Mon Mar 5 15:21:45 EST 2001


dg at pearl.tao.co.uk (David Given) writes:

> 2. I have this massive memory leak. How can I find it?
> 
> The more I use the program, the more memory it uses. I've seen it use
> >100MB before I killed it. I guess that I've got cyclic memory structures
> in the message cache, so it's never freeing any of the mail I look at. Are
> there any suggestions for how I can find these and kill them?

(a) switch to Python 2.
(b) try using Tim Peters' cyclops.py:
    http://www.python.org/ftp/python/contrib-09-Dec-1999/System/Cyclops.py

Cheers,
M.

-- 
  This song is for anyone ... fuck it.  Shut up and listen.
                         -- Eminem, "The Way I Am"



More information about the Python-list mailing list