Group Abstract Group Abstract

Message Boards Message Boards

Avoid leak of memory while using FindMinimum?

Posted 9 years ago
Attachments:
POSTED BY: Luisa TESTA
2 Replies
Posted 9 years ago

I ‘ve tried to solve the problem setting $HistoryLength=0

As I understand, you tried to set

$HistoryLength = 0

in the master kernel only. But the slave kernels still have infinity history length what you can check by evaluating

 ParallelEvaluate[$HistoryLength]

I recommend you setting zero history length in the slave kernels too:

ParallelEvaluate[$HistoryLength = 0]
POSTED BY: Alexey Popkov
Posted 9 years ago

Module does cause memory leaks in a number of specific cases, but I don't think the memory leak you describe is due to Module. I recommend you reading this (specifically the penultimate paragraph from the second post by Leonid Shifrin and posts linked therein) for additional information about situations when Module can cause memory leaks. Also you can find useful the following threads:

POSTED BY: Alexey Popkov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard