Number of matlab running

2 views (last 30 days)
bruno
bruno on 2 Jul 2013
Hello,
I am currently using matlab 2011b, and I have a lots of matlab functions to run with big running time (from 4/5 hours up to many days).
My problem is that i can only run 4 matlab at a given time (I don't use the gui, only the command line), and when i launch a fifth one, an other stop without warning.
So is there really a limit of 4 matlab running at the same time or I made some mistakes ?
If there is a limit, can we go beyond this limit ?
Sorry for my bad English.
Best regards,
Bruno
  4 Comments
Walter Roberson
Walter Roberson on 3 Jul 2013
How much memory is allocated to your virtual machine ? How much memory is each of your sessions taking?
bruno
bruno on 4 Jul 2013
I think I find the problem and you too, i just launch this night only 3 matlab, and one of my process dies unexpectedly without errors.
I looked with top at my processes and 7,1G out of 8G ram where used at this time, and now it's about 5,4G so i think there was a peak this night.
So a question come to my mind why no out of memory exception was triggered ?

Sign in to comment.

Accepted Answer

Jan
Jan on 4 Jul 2013
Edited: Jan on 4 Jul 2013
Sometimes out of memory messages cannot be written, because the require memory by itself. This rarely happens when a huge array is allocated, but usually when the memory is exhausted in many small pieces. Then finally there is even no memory to create the tiny string for the message anymore.
The standard solutions are:
  • Install more RAM
  • Use smaller data types if possible, e.g. integer types for indexing or single if the precision is enough
  • Stop other applications
  • Clear variables if they are not used anymore
  • Avoid memory fragmentation caused by omitted pre-allocations

More Answers (0)

Categories

Find more on Manage Products 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!