Memory Logging

N

NuclearOnslaught

Hey all,

I'm running some data analysis scripts that, due to the input file
size, tend to be quite memory intensive. I've been reading up on
Python's memory allocation (I'm using 2.4 and am locked into it, so I
don't have the new fixes in 2.5) but because of the nature of its
looping I don't think its losing much memory because of some of the
deallocation issues - it will reuse the ints and lists that Python is
retaining references to.

Because of this I suspect there are other memory leaks, and I'm trying
to find out where; some method through which I could monitor memory
usage as the script runs would be extremely helpful, even if it just
prints the amount of memory python is using every time I call a
particular command.

I've tried using the profile module; the output didn't seem
particularly helpful in terms of memory usage.

In case OS-specific commands are required, all the machines it will
run on are using Windows XP.

Thanks,
-- Aneesh Goel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,588
Members
45,100
Latest member
MelodeeFaj
Top