4

I have this python module that imports many other modules. On monitoring the vm usage of the module, I see the usage continuously growing. I tried to go through the whole code and assigned None to the objects\variables whereever possible. But I suspect there still could be something that is not freeing up the memory. Is there a way (through some 3rd party module or something) to view undisposed objects or their memory consumption?

Thanks!!

Rinks
  • 1,007
  • 2
  • 16
  • 22

1 Answers1

3

Check out How do I profile memory usage in Python? and Which Python memory profiler is recommended?. You need to dig into the docs, but those tools will allow you to breakdown memory usage by module.

Community
  • 1
  • 1
Bialecki
  • 30,061
  • 36
  • 87
  • 109
  • thank you for your reply @Bialecki. I am going to try that. I looked over it quickly and looks like I will have to install that on my remote server. – Rinks Jul 25 '11 at 13:39