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

3 次查看(过去 30 天)
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 个)

Community Treasure Hunt

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

Start Hunting!

Translated by