Slow initialization at startup during the "Ready" step

57 views (last 30 days)
I have installed Matlab R2024b on a Kubuntu 24.10 system. I installed only Matlab without an Add-ons and had no trouble during installation. Starting the program results in a long initialization time. I tracked the initialization process with the -timing flag. This results in the following output:
MATLAB Startup Performance Metrics (In Seconds)
total item gap description
=========================================================
0.47 0.47 0.00 MATLAB script
0.66 0.20 -0.00 main
0.71 0.05 0.00 Session Initialize
1.99 0.01 1.27 Toolbox cache load Start
1.99 0.44 0.84 Session Initialize
2.33 0.34 1.99 cachepath
2.50 0.11 2.38 LM Startup
2.60 0.10 0.00 splash
3.03 0.20 0.23 Constant Initialization
3.33 0.73 0.00 Engine Startup
3.52 0.20 0.00 InitSunVM
5.01 1.43 0.06 PostVMInit
5.01 1.68 0.00 mljInit
5.72 0.71 0.00 StartDesktop
5.72 2.39 0.00 Java initialization
5.72 0.00 0.00 psParser
5.72 0.00 0.00 Toolbox cache join
5.74 0.01 0.00 Package Registry initialization
6.17 0.21 0.22 matlabpath
7.08 0.19 0.72 matlabrc
7.09 0.00 0.00 Startup File
9.27 3.55 5.72 Init Desktop
217.84 212.12 5.72 Ready
=========================================================
Items shown account for 99.8% of total startup time
As visible, the last step consumes most of the time. Running the program bare with the -nojvm flag results in a quick start (3.92 s) . I already tried to increase the Java Memory heap space, as suggested in https://de.mathworks.com/matlabcentral/answers/1956139-slow-java-initialization-during-startup and tried several solutions from https://de.mathworks.com/matlabcentral/answers/92566-why-does-matlab-get-stuck-in-the-initializing-or-busy-state-or-take-a-long-time-to-start without improving the starting time.
Thanks in advance for any ideas how to resolve this issue.

Answers (2)

Image Analyst
Image Analyst on 14 Nov 2024 at 14:12
I don't think it should take over 3 minutes to start MATLAB. On my old, slow, severely memory- limited 8 GB Windows computer, it takes 50 seconds to launch R2024b. I'd do what it says in the FAQ:
Let us know what the solution turned out to be.
  3 Comments
Maximilian Pohle
Maximilian Pohle on 18 Nov 2024 at 11:49
Thanks for your reply.
I was hoping that someone else had encountered the same issue and had a solution. It seems I need to contact the support.
Image Analyst
Image Analyst on 18 Nov 2024 at 17:41
Yes, since I believe it's an installation issue, the telephone help should be free. So why wait? There is no reason to wait. Simply call them.

Sign in to comment.


Guillaume Lion
Guillaume Lion about 15 hours ago
Hi,
I’m experiencing the same issue on Ubuntu 24.10, but it does not occur on Ubuntu 24.04.
MATLAB Startup Performance Metrics (In Seconds)
total item gap description
=========================================================
0.46 0.46 0.00 MATLAB script
0.64 0.18 0.00 main
0.67 0.03 0.00 Session Initialize
1.93 0.10 1.16 Toolbox cache load Start
1.93 0.46 0.80 Session Initialize
2.16 0.23 1.93 cachepath
10.78 8.64 2.13 LM Startup
10.79 0.01 0.00 splash
11.12 0.15 0.18 Constant Initialization
11.24 0.45 0.00 Engine Startup
11.35 0.11 0.00 InitSunVM
12.37 0.97 0.05 PostVMInit
12.37 1.13 0.00 mljInit
12.83 0.46 0.00 StartDesktop
12.83 1.59 0.00 Java initialization
12.84 0.00 0.00 psParser
12.84 0.00 0.00 Toolbox cache join
12.85 0.01 0.00 Package Registry initialization
13.50 0.42 0.23 matlabpath
14.00 0.08 0.41 matlabrc
14.00 0.00 0.00 Startup File
15.62 2.78 12.83 Init Desktop
154.62 141.79 12.83 Ready
=========================================================
Items shown account for 99.8% of total startup time
Did you find a solution ?
Regards.
  3 Comments
Guillaume Lion
Guillaume Lion about 12 hours ago
It seems that the issue also affects the "Search Documentation" tool... It takes just as long to open the help page.

Sign in to comment.

Categories

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

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!