Parallelization Error

4 views (last 30 days)
Nikhil Agarwal
Nikhil Agarwal on 8 Dec 2011
Hi,
I'm running a piece of code in the matlapool local configuration, and I get the following error:
The client lost connection to lab 5. This might be due to network problems, or the interactive matlabpool job might have errored. This is causing: java.io.EOFException: EOF while reading from PlainConnection{fSocketChannel=java.nio.channels.SocketChannel[closed], fRemoteInstance=[Process: lab 5]}
The code does not create any issues when a parfor loop is replaced with a for loop. Also, the error is reported midway through execution (so many iterations are computed successfully).
I'd appreciate your help with this.
Thanks! Nikhil

Answers (1)

Jason Ross
Jason Ross on 8 Dec 2011
Sounds like a resource is being exhausted during the run.
  • Check to see if you are running out of memory (including swap) while the code is being run.
  • Check if you are filling up a partition (e.g. /tmp if you are on UNIX), or wherever your TEMP environment variable is on Windows.
Beyond that, do you know if: * This happens only on this machine (have you tried others?) * Are there any interesting entries in the machine's event/system logs around this time?
If that doesn't bear any fruit, you could try posting the code here or putting in a call to support.

Categories

Find more on Parallel Computing Toolbox 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!