MATLAB Production Server to reduce startup time of Matlab standalone?
You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Show older comments
0 votes
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
Kojiro Saito
on 4 Sep 2018
0 votes
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
Abdurrehman
on 5 Sep 2018
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
Kojiro Saito
on 6 Sep 2018
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.
Abdurrehman
on 6 Sep 2018
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
Kojiro Saito
on 6 Sep 2018
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"
Abdurrehman
on 13 Sep 2018
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
Kojiro Saito
on 13 Sep 2018
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
Abdurrehman
on 13 Sep 2018
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
Kojiro Saito
on 13 Sep 2018
You need to run as administrator when launching Command Prompt.

Abdurrehman
on 13 Sep 2018
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
Kojiro Saito
on 18 Sep 2018
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.
Eddy Philippe
on 28 May 2020
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?
Jayant
on 17 Nov 2021
Hi.. Dis you get any soln on this topic?.. i am getting very headaches for slow startups
More Answers (0)
Categories
Find more on MATLAB Production Server in Help Center and File Exchange
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)