Closed fgrosse closed 11 years ago
I have never used it, but maybe it is worth to try the python profiler?
Ah thanks for the hint, I will try this out. Unfortunately, form reading the manual I understand that this is no memory profiler so we will see if it can help us in this case.
The missing plot save really solves the issue with the memory leak?
Yep I just ran a full analysis and watched my memory usage. It does no longer rise significantly
Edit: The files where saved before that but pyplot seems to have internal handles for the currently open figure. If those are not closed they accumulate in memory
When I run huge simulation runs (like bigStatic 50 nodes) with 30 repetitions and the analysis starts, my memory slowly fills until swap is full and then everything gets so slow that I usually abort the script. Maybe I have introduced this with the parsing of the binary routing table data.
We need to check if we free all no longer needed resources and make the analysis executable on systems that don't have 4GB RAM available.
Currently 2 GB free RAM + SWAP memory are not enough