MATLAB freeze memory problem

1 次查看(过去 30 天)
Dominic Dwyer
Dominic Dwyer 2015-9-21
回答: Anton 2015-12-13
Hi there, our lab has been trying to solve the following problem and I was hoping that someone might be able to help.
  • MATLAB R2012b operating on Scientific Linux 6 is freezing when memory usage increases with different programs/code--i.e., you need to kill the PID. It was running a week ago and we have more than enough memory to handle the jobs (approx. 10G of RAM and 80G hard disk; also swap is fine, not that this matters). Jobs with lower memory requirements run fine and 'bench' works fine.
Would resetting or re-installing MATLAB be the only solutions? Could this be due to our license? (it's current but it is stored on another server)
Many thanks, Dominic

回答(2 个)

Jan
Jan 2015-9-21
编辑:Jan 2015-9-21
Find out, what you changed since it ran fluently. Compare the current code with your backups.
Even if the memory was fine before, a mistake like x=rand(1e6) can freeze the machine for hours.
Are there any infinite loops, e.g. in C-Mex functions?
A freezing Matlab is not an effect of problems with the license. If you have problems with the license, you get an error message, which tells you, that you have problems with the license. There are no magic connection to the processing speed or even a freezing of Matlab.
  3 个评论
Walter Roberson
Walter Roberson 2015-9-21
Checks to see if the license is still active can cause freezing if the remote system does not respond promptly. In such a case the CPU utilization should go to pretty much 0.
Dominic Dwyer
Dominic Dwyer 2015-9-21
编辑:Dominic Dwyer 2015-9-21
That's interesting, because we were having problems with the license file previously--matlab slow to load and slow to initialise analyses. We (thought) that we'd fixed that problem though because it's not occurring any more.
This is a complete freeze only during high demand jobs; e.g., we're not getting any freezing during jobs with low processing demands (i.e., low CPU, memory, io, disk write), which made me think previously that it couldn't be the same problem. The CPUs do go to zero though.
Any other thoughts would be much appreciated.

请先登录,再进行评论。


Anton
Anton 2015-12-13
Dominic, did you manage to track the problem? I have exactly the same issue with Matlab. Tried multiple versions of Matlab and gcc. One machine with Scientific Linux 6.5 freezes randomly, others work flawlessly. So far I managed to producer the same behaviour with a simple script (operations with 3D matrices). I'll report as soon as I reproduce it with a VERY simple script.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by