[Date Index] [Thread Index] [Author Index]
Memory Use growth
Here's my situation. I use Mathlink for Excel to call Mathematica code from within Excel. I use it's Solver to solve coupled problems, so for each instance, the Mathematica code might get called 100 times to calculate finite gradients. Finally, I use a risk analysis tool to generate and calculate up to 10,000 cases. So I exercise Mathematica functions, some of them quite complex, 1,000,000+ times. The kernel memory use always grows, in spite of my best effort to use CleanSlate[ ] and other tricks. I end up having to kludge up some code to shut down and restart the kernel to flush the memory. It acts like there is a memory leak? Is there any way to get the names of each symbol AND the memory allocated to it? Or to flip the question around, relate to each block of memory a symbol? This is killing me. How do webMathematica users handle this? Do occasional restarts?