How do you debug memory usage?

David wizzardx at gmail.com
Tue May 6 17:19:29 EDT 2008


>
>  Here is my modified version of Chris' get_all_objects() function.
>  All I did was force garbage collection using gc.collect().
>  This makes sure that you are not counting objects that Python has
>  left in memory, but plans on deleting at some point.

Thanks for the logic.

I want to debug rdiff-backup (Python backup tool for Linux) - it's
using 2 GB of memory (1GB ram, 1GB swap) on a backup server at work.

I'll use your method to find out why this is happening. Even if it
doesn't give me exact details, it should be enough info to go by.

David



More information about the Python-list mailing list