What *really* is the Mathworks Service Host?

What does the MSH really do, in practice? I already read in the answer here that it "is essential for MATLAB licensing and MATLAB startup", but that does not really explain anything. Please explain what it does from a technical standpoint.
Does it "phone home"? Does it monitor what programs I am running on my computer? Does it preload parts of Matlab?

Answers (1)

Conor Burgess
Conor Burgess on 6 Dec 2024
Edited: Conor Burgess on 6 Dec 2024
MathWorks Service Host is a collection of background processes that provide required services to MATLAB and other MathWorks products. Those services include licensing and MathWorks account login.
  • Does it "phone home"?
  • It needs to connect to MathWorks webservices to provide services to MATLAB and other MathWorks products.
  • Does it monitor what programs I am running on my computer?
  • Other than MathWorks programs, no.
  • Does it preload parts of Matlab?
  • It doesn't directly preload parts of MATLAB, but by moving some of those services out of MATLAB, they can be loaded and ready when MATLAB is started, reducing the work that needs to happen at MATLAB start up.

6 Comments

f
f on 6 Dec 2024
Edited: f on 6 Dec 2024
Thanks, but what are these "required services" exactly? Prior to version 2024a, Matlab worked seamlessly without MSH; so I find it hard to believe that there are any services at all that need to run in the background, just to ensure that licensing and login work.
Those services (e.g. licensing and login) have moved out of MATLAB and into MathWorks Service Host. They are no longer fully functional in MATLAB without MathWorks Service Host (as of R2024a).
I see what you mean, thanks. So it was a conscious choice to move these services from Matlab itself into a background service (even if it was not necessary to do it, from a technical standpoint). What is the technical reason this change was made, if I may ask?
Also, I can figure out what you mean by "Mathworks account login", but what is "licensing" exactly?
Why does MSH require so very much disk space? I have seen figures on the order of 1 gigabyte per user.
Apologies for the delayed replies. More information can now be found here.
Unfortunately I do not see there any indication of why MSH requires so much disk space?

Sign in to comment.

Categories

Products

Release

R2024a

Asked:

f
f
on 29 Nov 2024

Commented:

on 5 Mar 2025

Community Treasure Hunt

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

Start Hunting!