KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a django webserver running under uwsgi that appears to leak memory. Specifically, the RSS of the processes slowly grow until eventually I have to restart it. I am aware of the other similar questions to this, however all the solutions/conclusions found so far don't appear to apply (that I can find) in this case. So far, I have used meliae , Heapy , pympler and objgraph to inspect the python heap and they all report the same thing: A normal looking heap using about 40MB of memory (expected) with very little variance over time (as desired). This is unfortunately entirely inconsistent with the process RSS, which will happily grow to 400MB+ with no reflection in the python heap size. Some sample output to illustrate my point - Pympler output comparing python heap/object memory vs process RSS: Memory snapshot: types | # objects | total size ============================================= | =========== | ============ dict | 20868 | 19852512 str | 118598 | 11735239 unicode | 19038 | 10200248 tuple | 58718 | 5032528 type | 1903 | 1720312 code | 13225 | 1587000 list | 11393 | 1289704 datetime.datetime | 6953 | 333744 int | 12615 | 302760 <clas
Tags (comma-separated)
Save Edits
Cancel