find memory leaks in running program

Chris Withers chris at simplistix.co.uk
Mon Dec 13 18:30:17 EST 2010


On 07/12/2010 16:51, Marco Hornung wrote:
> 1. What are the best tools to analyze pythons memory stack, while it is running?

Look for the heapy stuff in the guppy package.

> 2. Is there a possibility to analyze the memory stack of a program with external programs? (without to change the source code - I am only interested in the object size)

heapy is your best bet.

> 3. Can I sort of "break" into the memory to see what objects consume how much memory?

The GC module might help here too, but really, heapy is what you want.

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk



More information about the Python-list mailing list