Gregory (Grisha) Trubetskoy
grisha at verio.net
Fri Apr 6 22:07:46 EST 2001
On Fri, 6 Apr 2001, Marc Fiuczynski wrote: > Hi, > > I am using mod_python to serve up large files from the server to the client. > I have noticed that the memory footprint of httpd gets rather large and > stays that way. Can someone give me a hint how to start figuring out which > parts are holding on to that amount of memory. Right now I have no clue > whether it is httpd, mod_python, or my python programs. Is there a way to > figure out what the python memory profile is, or python GC stats? It is most likely Python. There is no easy way to identify the state of all variables within a Python interpreter, but you can try a few things, such making sure that your large variables don't persist between connection by assigning None to them at the end. Grisha
|