[Baypiggies] [Fwd: [PyOP] find memory leaks in running program]

jim jim at systemateka.com
Tue Dec 7 23:03:49 CET 2010

forwarding this to the baypiggies list 

-------- Forwarded Message --------
From: Marco Hornung <pythonmarco at gmail.com>
Reply-to: "Python On the Peninsula \(SF Bay Peninsula\)"
<pyop at python.org>
To: pyop at python.org
Subject: [PyOP] find memory leaks in running program
Date: Tue, 7 Dec 2010 12:05:13 -0500


1. What are the best tools to analyze pythons memory stack, while it is running?
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)
3. Can I sort of "break" into the memory to see what objects consume how much memory?

my scenario
I have to debug a multithreaded server, which is written in the twisted-framework. One of the processes has some sort of memory leak - After one of our jobs is finished the main process has still over 59% of the entire memory allocated. I will probably have to recreate our scenario and equip our server with some memory sensors - but  it takes 12h to reproduce the scenario and I will have to change the source code(at least I do not know of other options).
Therefore I am looking for quicker possibilities to look into what causes our memory leak.

pyop mailing list
pyop at python.org

More information about the Baypiggies mailing list