So am slowly running out of memory on one of my imps (well, if you call several hours slowly). I can’t figure it out for the life of me (I will eventually do a full code review, but until then…).
I thought maybe printing all the globals would do it, but the only globals that aren’t functions or classes (since they don’t grow over time) and I am not seeing anything surprising.
I only have one object (a blob, that grows and shrinks), but I don’t see it getting bigger over time.
The one thing I do, do, is I send this blob up to the agent frequently. Anyone notice similar memory growth with sending data back and forth with the agent?
Well, it takes me posting to think of some answers. As far as the agent is concerned, I could always just comment out that code and see if the memory stills grows…
I am using imp.getmemoryfree(), which has been VERY helpful! I can watch the growth over time, but it seems to go up, then down, then back up again, but over the long haul, something is leaking
Looks like the seek/resize verses new blob was not real. I put that workaround in and eventually it ran of memory. So, either I have multiple leaks, or there is just specific situations that cause this to happen
Most of my complex logic is in the agent, so the device code is pretty basic…