Input is too large to create ByteBuffer - Error when running batch job on server

Hi.
I have some rather large simulations to run on a server. I send the scripts as batch jobs using parallel computing and they run just fine without errors. However, when they finish I get the error message
ErrorIdentifier: parallel:task:MJSUnableToSubmitResult - ErrorMessage: Unable to return results to jobmanager. The reason is: Input is too large to create ByteBuffer.
Does anyone know what could be the problem?
Thanks in advance!

 채택된 답변

Marc Jakobi
Marc Jakobi 2015년 9월 30일
Okay I found the problem.
I forgot to clear the input variables. So the job tried to return the entire workspace (including inputs and temporary variables) to the jobmanager.
The solution is:
clearvars -except var1 var2
where var1, var2, ... are the variables needed as an output.

추가 답변 (0개)

질문:

2015년 9월 29일

답변:

2015년 9월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by