how to get memory info from python?

Gardner Pomper gardner at
Mon Jun 7 00:55:28 CEST 2004


I'm pretty new to python, but I have not found any way to find out how much
memory is being used by my python application. I have some fairly large data
to load in and I am concerned about hitting the 2GB limit on my 32 bit

I would like to have the program check itself for memory usage. I know I can
get the memory information from a 'ps -l'. Btw, I will be running on AIX and
linux, although I may do some development on Windows.

- Gardner

More information about the Python-list mailing list