Memory of gather structure is not freed

User 350 | 5/13/2015, 10:20:27 PM


We are using a large data structure (unordered map) inside the gather structure. The problem is that the memory consumed during the gather() is not freed at the apply stage. Even when the current engine is finished (we run it for just 1 iteration) and the next one is started, we do not see memory being freed.

Why does this memory is not freed automatically (by garbage collector)? And how/where we can free it manually?

Thanks a lot! Michael.


User 1592 | 5/17/2015, 5:46:10 PM

Hi Michael This sounds like a bug, but it may be also related to your internal class data structures. Unfortunately powergraph open source code is deprecated as we switched to Dato Core which is our newest code base. You will need to debug and verify the destructor for your class is called.

User 350 | 6/10/2015, 8:31:54 PM

Thanks Danny. It looks like all the destructors are invoked, but the memory still shows occupied (we monitor memory using Linux's "top"). Any way, we were able to run our experiments, so we didn't dig deeper into it. Thanks again.

User 674 | 6/11/2015, 2:06:54 AM

@Micheal, Could you please also elaborate on how you verify the objects destructors are invoked properly?