How to improve Matlab Startup Time?

조회 수: 52 (최근 30일)
Ethan Wright
Ethan Wright 2025년 2월 27일
댓글: Ethan Wright 2025년 3월 24일
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
Abhishek Kumar Singh 2025년 2월 28일
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