Clear Filters
Clear Filters

Why does MATLAB Parallel Server validation fail or stall at the SPMD/Pool job test stage (communicating batch jobs)?

12 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 10 Apr 2024
Edited: MathWorks Support Team on 21 Mar 2024
This can be caused by a number of possible issues, including, but not limited to the following:
  • Network connectivity issues
  • Insufficient computer resources or restrictions are placed on computer resources
  • Licensing issues


Network connectivity issues

Make sure that each worker is able to communicate with each other over the network and that the appropriate ports are opened. If you don't know which ports should be opened, take a look at the link below.
How do I configure MATLAB Parallel Server using the MATLAB Job Scheduler to work within a firewall?
Please check your hosts file to make sure that any manual entries are added correctly. Entries added incorrectly can result in network connectivity issues.


Insufficient computer resources

Please make sure that MATLAB has the ability to access at least the minimum system requirements when validating your cluster. If you're unsure what the minimum system requirements are, take a look at the link below.


System Requirements


Licensing issues

It is also possible that there is an issue with the Network License Manager. There are several different types of Network License Manager errors, such as the Network License Manager being misconfigured, not running, or its ports are blocked. Check the Network License Manager for any faults. Otherwise, create a full validation report to see if you can find a License Manager error or a log file in the validation report.


If you are not getting any sort of error message, use the MATLAB commands below to generate a ZIP archive with logs in MATLAB's current working directory. If you are using R2023b or older, you will need to download pctLogging.m, which is attached to this page. Once downloaded, place it in your MATLAB path or working directory.
If the commands hang indefinitely, remove "j.wait".
c = parcluster('MJSProfile1'); % REPLACE MJSProfile1 WITH YOUR PROFILE NAME.
j=batch(c,@pwd,1,{}, 'pool', 3);

More Answers (0)


Find more on Manage Products in Help Center and File Exchange


No tags entered yet.

Community Treasure Hunt

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

Start Hunting!