Why do my MATLAB Production Server workers exit unexpectedly with code 1073807364?

9 views (last 30 days)
I notice that after my MATLAB Production Server instance has been running for while, all of a sudden the workers and instance stop. When looking into the main.log file I see lines like:
206 [2015.08.20 16:29:07.092698] [information] [SERVICE:worker] Worker 12 exited unexpectedly with code 1073807364
207 [2015.08.20 16:29:07.092698] [information] [SERVICE:worker] Restarting worker 12
208 [2015.08.20 16:29:07.092698] [trace] [SERVICE:worker-process-factory] Starting a new worker process
209 [2015.08.20 16:29:07.108298] [trace] [SERVICE:worker-process-factory] Starting asynchronous accept
210 [2015.08.20 16:29:07.108298] [information] [SERVICE:worker] Worker 11 exited unexpectedly with code 1073807364
211 [2015.08.20 16:29:07.108298] [information] [SERVICE:worker] Restarting worker 11
212 [2015.08.20 16:29:07.108298] [trace] [SERVICE:worker-process-factory] Starting a new worker process
213 [2015.08.20 16:29:07.155098] [error] [SERVICE:worker-process-factory] Worker 13 exited on startup, exit status = 3221225794(read exit code result = The operation completed successfully)
214 [2015.08.20 16:29:07.155098] [error] [SERVICE:worker] Restart failed, code=1, message=process exited unexpectedly, worker=12
215 [2015.08.20 16:29:07.155098] [trace] [SERVICE:worker-process-factory] Starting a new worker process
216 [2015.08.20 16:29:07.155098] [error] [SERVICE:worker-process-factory] Worker 14 exited on startup, exit status = 3221225794(read exit code result = The operation completed successfully)
217 [2015.08.20 16:29:07.155098] [error] [SERVICE:worker] Restart failed, code=1, message=process exited unexpectedly, worker=11

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Aug 2015
Exit code 1073807364 (0x40010004) may be seen when your workers are being shutdown by Windows when it is forcefully ending your user session. This can for example happen if your workers were started through "mps-start" in a Remote Desktop Session and this session timed out. Timeouts of Remote Desktop Sessions can be configured in your Windows Group Policy settings, see:
https://technet.microsoft.com/en-us/library/cc754272.aspx
To prevent running into this issue, do not control your MPS Instance through "mps-start" and "mps-stop" on the command line in normal user sessions. Instead install your MPS Instance as a Windows Service and start/stop this service. In MPS releases R2015a and newer see the "Install a Server Instance as a Windows Service" section in the MATLAB Production Server documentation for more information on installing MPS as service. For MPS releases prior to R2015a, see the related article.
 

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2014b

Community Treasure Hunt

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

Start Hunting!