Hello,
I have a script that used to run for weeks on end with a stable memory consumption pattern. At the time it was only dealing with the Django ORM. We have added MongoDB to our production environment and added a few queries that use mongoengine to the script.
I am now seeing the memory consumption steadily rise, and I'm not finding anything in our local code that would cause that, so I'm thinking it's in the mongoengine module. I am closing the MongoDB connection between each loop of the script, but the memory usage is still rising.
Any suggestions on what might be causing this? I am trying to run this under heap profilers (heapy), but not having much success so far.
Thanks!
TTimo