Matlab very slow to startup in SCIF with no network access
1 view (last 30 days)
Show older comments
We installed R2016b and it ran normally. All models transferred were created in R2013a, it was too hard to fix quickly so we installed R2013a to get operational sooner. Every time I startup the R2013a version it takes about 10 minutes to come to the Matlab prompt. Clearly this is not PC hardware or configuration related, R2016b worked file. We are running in a SCIF with a license file and no internet access.
How can I troubleshoot the problem?
1 Comment
Walter Roberson
on 9 Mar 2017
"SCIF" appears likely to refer to "Secure Compartimented Information Facility" for this purpose.
Answers (4)
Sam McDonald
on 7 Mar 2017
Here are a few steps you can try:
1. Use the "timing" run-time option to get more information about which specific portion of the startup is slow. To do this, you can run MATLAB from the Windows command prompt:
(a) Click on the Windows "Start" menu, type in "cmd", and press "Enter"
(b) Inside the command prompt, navigate to the "bin" folder inside the MATLAB R2015b directory:
> cd C:\Program Files\MATLAB\R2013a\bin
(Note that you may need to adjust this path for your system)
(c) Execute the following command inside the Windows command prompt window:
> matlab -timing
This will start MATLAB and automatically record the time taken for each startup task. When the startup completes, you will see a log outputted inside the MATLAB Command window that summarizes the timing results. Note that this will also create a text log file noted at the top of the output.
2. In the output of the timing results from Step 1 above, check if the "InitSunVM" task is taking a large amount of time to complete. If so, this might be related to the McAfee Virus Protection. If this is applicable to your system, there is a MATLAB Answers post that details a quick fix to resolve this issue:
3. Check if you have code being executed in a "startup.m" file. To access this, you can execute the command below inside the MATLAB Command Window:
>> edit startup.m
If the file is not empty, you can go through the code to determine if any function calls or operations inside may be slowing your startup procedure.
4. In the MATLAB toolstrip, click on "Home" and then on the "Preferences" button. Inside the "Preferences" window, select "MATLAB -> General" on the left-hand side. On the right-hand side, verify that "Enable toolbox path cache" is enabled (it should be enabled by default).
5. Also inside the "Preferences" window, select "MATLAB > General > Source Control". If you do not use any form of source-control integration, you can select "None" on the right-hand side and then apply the changes.
0 Comments
Walter Roberson
on 9 Mar 2017
Is it possible that at some point you configured a networked license server? If so then you can get noticeable delays when MATLAB examines the license information, sees that it is to talk to a server, tries to communicate with the server, waits for timeout, gets the timeout and falls over to use the license file.
Is it possible that your MATLAB path refers to a networked filesystem that might be slow or absent? Use pathtool to examine the path .
restoredefaultpath
should clean the path up at least temporarily; you can save that clean path.
0 Comments
David Bridenstine
on 9 Mar 2017
1 Comment
Walter Roberson
on 9 Mar 2017
Have a look at https://www.mathworks.com/matlabcentral/answers/99147-where-are-the-license-files-for-matlab-located
and be sure to cross-check the LM_LICENSE_FILE environment variable that it mentions there.
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!