Matlab slow startup on the first time, much faster subsequently

55 views (last 30 days)
When I open Matlab R2022a for the first time after I turn on my pc it takes 2 minutes to start. That does not mean I open the program just after I start my pc, it can be even hours later, provided that it is the first time after the pc was turned on.
Then, if I exit and reopen the program, it takes 10 seconds to start. I open it by using -c command, using the correct path to my license file. That does not help.
Matlab is installed on a HDD, whereas the license files are on a SSD.
Here are the times
MATLAB Startup Performance Metrics (In Seconds)
total item gap description
=========================================================
0.00 0.00 0.00 MATLAB script
16.69 16.69 0.00 main
16.91 0.23 -0.00 Session Initialize
18.55 0.00 1.63 Toolbox cache load Start
18.55 1.17 0.47 Session Initialize
21.20 2.65 18.55 cachepath
25.77 3.01 22.76 LM Startup
26.51 0.15 0.60 splash
64.53 0.51 37.51 Constant Initialization
65.60 39.00 0.08 Engine Startup
67.54 1.92 0.03 InitSunVM
99.27 31.15 0.58 PostVMInit
99.38 33.77 0.02 mljInit
100.36 0.98 0.00 StartDesktop
100.67 35.05 0.02 Java initialization
108.50 2.80 5.04 psParser
108.58 0.00 0.08 Toolbox cache join
116.55 0.80 7.17 matlabpath
120.62 0.77 3.30 matlabrc
129.96 29.59 100.37 Init Desktop
131.25 30.88 100.37 Ready
=========================================================
Items shown account for 73.0% of total startup time
MATLAB Startup Performance Metrics (In Seconds)
total item gap description
=========================================================
0.00 0.00 0.00 MATLAB script
0.28 0.28 0.00 main
0.32 0.03 0.00 Session Initialize
0.50 0.00 0.19 Toolbox cache load Start
0.50 0.11 0.08 Session Initialize
0.60 0.03 0.57 LM Startup
0.76 0.00 0.15 splash
0.78 0.28 0.50 cachepath
3.52 0.16 2.60 Constant Initialization
3.54 2.78 0.00 Engine Startup
3.68 0.14 0.00 InitSunVM
6.37 2.61 0.08 PostVMInit
6.38 2.83 0.00 mljInit
6.40 0.02 0.00 StartDesktop
6.40 2.86 0.00 Java initialization
6.54 0.00 0.14 psParser
6.54 0.00 0.01 Toolbox cache join
7.43 0.66 0.23 matlabpath
7.53 0.01 0.09 matlabrc
8.44 0.00 0.90 SettingsConstructorLoadingFiles
8.44 0.00 0.90 SettingsConstructorLoadingFiles
9.58 3.18 6.40 Init Desktop
9.77 3.37 6.40 Ready
=========================================================
Items shown account for 99.9% of total startup time
  8 Comments
Luca Martino
Luca Martino on 1 Nov 2022
I fixed the problem by reinstalling everything on the C: drive (SSD). I don't think the problem was the HDD, I bet for some reasons Matlab wanted to be installed under the main drive. I didn't try to install it under another SSD, tough.
Bruno Luong
Bruno Luong on 1 Nov 2022
Edited: Bruno Luong on 1 Nov 2022
The automatic startup accelerator of MATLAB resseble to a bloadware.
I spend enough time to disable Apps, services, task scheduler of WIndows, and now MATLAB. Especially this one come back after an update. TMW MUST give an option for user to control the startup and leave it there.My computer is used for many other things and not only to drink coffee when MATLAB is starting as Jan rightly points out the advantage.

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!