You can install a MATLAB® Production Server™ instance in an on-premise installation to run as a Windows® service. For more information on how to set this up, see Install a Server Instance as a Windows Service.
You can specify how your system responds if the server instance running as a Windows service fails.
Open Service Control Manager in Windows.
Locate and double-click the server instance service that you want to configure for failure recovery.
Specify recovery options in the Recovery tab.