Parfor error: The client lost connection to lab

1 view (last 30 days)
Dear all, I'm using a parfor loop with 8 workers. My pc has 8 cores and 16 GB RAM.
Each worker has to run a function that calls a simulink model. After a lot of iterations (more than 3600) I get the following error "The client lost connection to lab X This might be due to network problems ..." I don't know which is the problem. The function that is sent to the workers is always the same.
I read on a forum that another user solves this problem by closing the workers and opening them again. I didn't try this solution because i want to know if it is a known issue and if there is another solution.
I could be a memory leak, but i have no idea. Any suggestions?

Answers (1)

Walter Roberson
Walter Roberson on 5 Jan 2016
The most common cause of this happening would be running out of memory, either due to memory leak or due to there being more than 2 Gb of data to transfer (older versions; I do not recall when the limit was lifted.)
  1 Comment
Antonio Parziale
Antonio Parziale on 5 Jan 2016
Edited: Antonio Parziale on 5 Jan 2016
I do not trasfer a lot of date between workers. They are just some arrays.
So, do you think that to close and to open the workers after some iterations is a good idea?

Sign in to comment.

Categories

Find more on MATLAB Parallel Server in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!