MATLAB freeze memory problem
3 views (last 30 days)
Show older comments
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
0 Comments
Answers (2)
Jan
on 21 Sep 2015
Edited: Jan
on 21 Sep 2015
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 Comments
Walter Roberson
on 21 Sep 2015
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.
Anton
on 13 Dec 2015
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.
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!