Hi, I have a Matlab program that need to run for months continuously. I keep monitoring the memory usage by using "memory" command periodically. What I observed is that both the "Memory available for all arrays" and "Memory used by Matlab" increase over time. For about half a day. "Memory available for all arrays" increases by 48MB, while "Memory used by Matlab" increases by 31MB. I do have a task that runs periodically at high rate, with a call to a mex function. But there is no memory allocation during runtime. Will my program crash with "Out of memory" error eventually? Which memory in memory command is the actual limit that cause the "Out of memory" error?
MATLAB: Will I receive “Out of Memory” error eventually: Both the “Memory available for all arrays” and “Memory used by Matlab” increase
memorymemory leakout of memory
Best Answer