How to improve Matlab Startup Time?

19 views (last 30 days)
Ethan Wright
Ethan Wright on 27 Feb 2025
Commented: Ethan Wright on 24 Mar 2025
Hello all,
I am running into an issue where Matlab 2024a on Windows 11 is taking anywhere from 60 to 200 seconds to open the first time I open it. Everytime after that it takes only about 20 seconds or less. Running "matlab -timing" in CMD It looks like the second Session initialize is taking a long time.
I found a number of community posts about improving the start up time, but none I found seem to point to the session initialize being the issue. Does any one have an suggestion of what can be done?
My second part of this is, I want to make sure any fix there is can be applied to all users, as many people will be using this system.
Cheers,

Answers (2)

Abhishek Kumar Singh
Abhishek Kumar Singh on 28 Feb 2025
It appears from the timing logs that the MathWorks Service Host (MSH) on your machine may be corrupted.
To resolve this issue, you can try reinstalling the MathWorks Service Host by following the guidance provided in the MATLAB Answers post: https://www.mathworks.com/matlabcentral/answers/1815365-how-do-i-uninstall-and-reinstall-the-mathworks-service-host
  1 Comment
Ethan Wright
Ethan Wright on 28 Feb 2025
I guess I forgot one important part. This is a parent image for labs. So when a person is opening matlab, it is the first time Matlab has ever been opend under that user. So that task and folder do not exsit.
So is there something else that can be done to fix that?
Cheers,

Sign in to comment.


Ethan Wright
Ethan Wright on 21 Mar 2025
Have not really had time to focus on this, but I noticed that when I start Matlab for the first time it runs "MathWorks Service Host" in the task manager. Once that finishes it opens, and anytime I open it after that is opens in like 15 seconds.
So, is there a way to make the "MathWorks Service Host" installer/whaterber it is, run as some as the PC starts? Or at least does someone know what exe starts the "MathWorks Service Host"?
Cheers,
  2 Comments
Ethan Wright
Ethan Wright on 24 Mar 2025
@Walter Roberson Thank you for that page.
That is on the system, it was already there as it seems to be part of the defualt install.
I ran it manually from Task Scheduler, waited till the task manager instance disappeared then opened Matlab. It still took 150 plus seconds, 140 of them from the second "Session initiation"
As Matlab was opening I saw the attached image in the Task Manager: :basically the "InstallMathWorksServiceHost" was running, which I thought was suppose to be handled by the Starup Accelerator Task.
Since the Accelerator task did not install the MathWorksServiceHost, do you know what should install it?
Cheers,

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!