[Pymilter] memory leak in 0.9.2?

Stuart D. Gathman stuart at bmsi.com
Tue Jul 28 13:13:05 EDT 2009


On Tue, 28 Jul 2009, Stuart D. Gathman wrote:

> I guess the first question to investigate is if the leak is in the
> Python API (missing a Py_DECREF somewhere) or the libmilter API.  I wonder if
> there is a way to tell how much of the 144M is allocated as:
> 
> 1) python objects
> 2) malloc/free via libmilter
> 3) threads

There is also the possibility that the 144M is in a global datastructure
allocated by python code.  For instance, I keep ip sets, CBV result maps,
and other global datastructures which use quite a bit of memory.

-- 
	      Stuart D. Gathman <stuart at bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.



More information about the Pymilter mailing list