Is there a way to run MATLAB Production Server as a Windows service?
2 views (last 30 days)
Show older comments
MathWorks Support Team
on 24 Oct 2013
Edited: MathWorks Support Team
on 24 Dec 2023
I am running MATLAB Production Server (MPS) on a Windows server. I can create and start a server instance using the instructions in the User's Guide but the server instance stops when I log off the Windows server. I need the server instance to remain running even when I am not logged on to the server, or after the server reboots. Is there a way to run MPS as a Windows service?
Accepted Answer
MathWorks Support Team
on 23 Dec 2023
Edited: MathWorks Support Team
on 24 Dec 2023
Yes, it is possible to create a Windows service for your MPS instance via command-line when creating your instance, or you can add a Windows service for an existing instance.
This functionality does not exist for instances created through MPS dashboard.
If your instance was already created via command-line, you can add a Windows service for it by executing:
mps-service -C <path_to_instance> create
Or you can create a new instance with its own Windows service by executing:
mps-new <path_to_instance> --service
For more information, see:
Configure Server Instance as Windows Service
Also see page 36 of the MATLAB Production Server Guide pdf:
MATLAB Production Server Guide
This functionality was added in R2015a with the mps-service utility, but there is a different workflow to install a Windows Service for older releases of MATLAB Production Server. If you need support with a release of MPS older than R2015a, contact MathWorks Support:
0 Comments
More Answers (0)
See Also
Categories
Find more on Deployable Archive Creation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!