MATLAB Production Server to reduce startup time of Matlab standalone?

Hi
An expert from MATLAB community had suggested me to use Matlab Production Server for reducing startup time of Matlab standalone. Kindly help how to use MPS for said purpose. Thanks

 Accepted Answer

Standalone applications, which are created by MATLAB Compiler, launch MATLAB Runtime when execution is called. On the other hand, as this document (Servicing Requests for MATLAB Programs) said, MATLAB Production Server makes workers standby, so there's no startup time of MATLAB Runtime when MPS applications are called.

12 Comments

Sorry I never used MPS is it a part of standard software or its a separate tool that we have to purchase? similar to Standalone can we run MSP instance on PCs that don't have Matlab installed. Is there any training available on MPS. thanks for your precious time
MPS is a server software which runs independently of MATLAB. To create MPS applications, MATLAB Compiler SDK is necessary. MATLAB Runtime is installed in the server of MPS, so end-users do not need MATLAB Runtime on their machine.
Here is a short video which explains MPS briefly.
I had already installed mcr now installed MPS. But when I run following command it doesn't recognize it.
mps-setup "C:\Program Files\MATLAB\MATLAB Runtime\v901"
error: mps-setup is not recognized as internal or external command Kindly help how to configure server thanks
I suppose MPS_ROOT\script is not included in your PATH, you need to cd first.
cd C:\Program Files\MATLAB\MATLAB Production Server\R2018a\script
mps-setup "C:\Program Files\MATLAB\MATLAB Runtime\v901"
Hi, thanks a lot for the precious support
I used above mentioned directory it produces following results
msp-setup
Is this (Version) the MATLAB runtime you want to use Y/N? Y
Updating
Error: Access denied; check
$MPS\R2018a\Config
I have checked this MPS folder, no such config folder exists there. Please help
I guess MPS tried to write a file (mcrroot) under C:\Program Files\MATLAB\MATLAB Production Server\R2018a\config, but failed because standard Windows user had not permissions to write under C:\Program Files.
Please launch Command Prompt as Administrator and run the same script.
Also, rather than command line interface, it's easier to configure MPS with MPS dashboard. In that case, Visual C++ Redistributable Packages for Visual Studio 2013 is needed for Windows machine, so we can download from here and download x64 version.
Then,
cd C:\Program Files\MATLAB\MATLAB Production Server\R2018a\dashboard
mps-dashboard.bat setup
Hi, Sorry still getting an error, did the following steps 1.Installed Visual C++ Redistributable Packages 2.
cd C:\Program Files\MATLAB\MATLAB Production Server\R2018a\dashboard
mps-dashboard.bat setup
Specified folder
D:\MPSWork
but getting following error
############# Server Error Begin ################
server error: EPERM: Operation not permitted, chmod' C:\Program Files\MATLAB\MATLAB Production Server\R2018a\Dashboard\config\config.txt'
############# Server Error end ################
It seems that windows is not allowing to edit config.txt file, but I am logged in from administrator. Please help
You need to run as administrator when launching Command Prompt.
thanks a lot I have done and this only happened with you ultimate support. Please I have some more questions. I have created a GUI with guide and using MCR converted to .ctf then deployed on server. How can I access that application from a remote PC and the from the same PC (where it was deployed). As stated in the beginning I intended to use MPS only because my standalone is taking a high startup time. Now hope using MPS will be a quicker way. thanks
MPS is suited for back-end calculations and unfortunately, there's no good way of directly converting GUIDE/AppDesigner based gui applications to MPS's frond-ends.
So what would be a proper architecture for what the OP is trying to achieve? I have the same issue. I have an AppDesigner GUI that I want calling the MPS for some heavy duty image processing. How do we achieve this?
Hi.. Dis you get any soln on this topic?.. i am getting very headaches for slow startups

Sign in to comment.

More Answers (0)

Asked:

on 2 Sep 2018

Commented:

on 17 Nov 2021

Community Treasure Hunt

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

Start Hunting!