How to improve Matlab Startup Time?

56 次查看(过去 30 天)
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,

回答(2 个)

Abhishek Kumar Singh
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 个评论
Ethan Wright
Ethan Wright 2025-2-28
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,

请先登录,再进行评论。


Ethan Wright
Ethan Wright 2025-3-21
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 个评论
Ethan Wright
Ethan Wright 2025-3-24
@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,

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by