Why is MATLAB R2024b startup taking a long time in the "Session Initialize" stage?

10 views (last 30 days)
MATLAB R2024b takes over a minute to startup.
The timing logs indicate that most of the startup time is spent in the "Session Initialize" stage:
MATLAB Startup Performance Metrics (In Seconds) total item gap description ========================================================= 0.00 0.00 0.00 MATLAB script 0.21 0.21 0.00 main 0.27 0.06 0.00 Session Initialize 61.15 0.00 60.88 Toolbox cache load Start 61.15 60.83 0.05 Session Initialize 61.32 0.08 61.24 LM Startup 61.42 0.00 0.09 splash 61.53 0.38 61.15 cachepath 62.43 0.27 0.74 Constant Initialization 62.48 1.06 0.00 Engine Startup 62.77 0.30 0.00 InitSunVM 64.94 2.11 0.05 PostVMInit 64.94 2.46 0.00 mljInit 65.58 0.64 0.00 StartDesktop 65.58 3.10 0.00 Java initialization 65.64 0.00 0.05 psParser 65.64 0.00 0.00 Toolbox cache join 65.66 0.02 0.00 Package Registry initialization 66.68 0.81 0.22 matlabpath 66.95 0.06 0.21 matlabpath 67.19 0.08 0.15 matlabpath 67.28 0.06 0.02 matlabpath 67.37 0.07 0.02 matlabpath 67.52 0.11 0.04 matlabpath 67.65 0.10 0.02 matlabpath 67.75 0.08 0.02 matlabpath 67.81 2.23 65.58 Init Desktop 67.84 0.07 0.02 matlabpath 68.34 0.47 0.03 matlabpath 68.41 0.06 0.02 matlabpath 68.54 0.11 0.02 matlabpath 68.62 0.07 0.02 matlabpath 68.72 0.08 0.01 matlabpath 68.82 0.08 0.02 matlabpath 68.90 0.06 0.02 matlabpath 69.00 0.09 0.02 matlabpath 69.08 0.06 0.02 matlabpath 69.16 0.06 0.01 matlabpath 69.23 0.05 0.02 matlabpath 69.32 0.08 0.02 matlabpath 69.41 0.07 0.02 matlabpath 69.48 0.06 0.02 matlabpath 69.56 0.06 0.02 matlabpath 69.76 0.18 0.02 matlabpath 69.84 0.06 0.02 matlabpath 69.93 0.07 0.02 matlabpath 70.01 0.06 0.02 matlabpath 70.09 0.06 0.02 matlabpath 70.17 0.06 0.02 matlabpath 70.24 0.06 0.02 matlabpath 70.32 0.06 0.02 matlabpath 70.40 0.06 0.02 matlabpath 70.47 0.06 0.02 matlabpath 70.55 0.06 0.02 matlabpath 70.73 0.15 0.02 matlabpath 71.13 0.01 0.40 matlabrc 71.14 0.00 0.00 Startup File 71.20 5.62 65.58 Ready ========================================================= Items shown account for 105.7% of total startup time
There is little difference in timing logs when launching MATLAB with no desktop, or between cold and warm startups.
How can I reduce the startup time? 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Dec 2024 at 0:00
Edited: MathWorks Support Team on 11 Dec 2024 at 21:30
The timing logs indicate that MathWorks Service Host (MSH ) may be corrupted on your machine.
To address this issue, please re-install MathWorks Service Host by following the MATLAB Answers post on How do I uninstall and reinstall the MathWorks Service Host?

More Answers (0)

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!