How to improve Matlab Startup Time?

56 visualizaciones (últimos 30 días)
Ethan Wright
Ethan Wright el 27 de Feb. de 2025
Comentada: Ethan Wright el 24 de Mzo. de 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,

Respuestas (2)

Abhishek Kumar Singh
Abhishek Kumar Singh el 28 de Feb. de 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 comentario
Ethan Wright
Ethan Wright el 28 de Feb. de 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,

Iniciar sesión para comentar.


Ethan Wright
Ethan Wright el 21 de Mzo. de 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 comentarios
Ethan Wright
Ethan Wright el 24 de Mzo. de 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,

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by