Matlab very slow to startup in SCIF with no network access
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2017-3-9
"SCIF" appears likely to refer to "Secure Compartimented Information Facility" for this purpose.
回答(4 个)
Sam McDonald
2017-3-7
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 个评论
Walter Roberson
2017-3-9
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 个评论
David Bridenstine
2017-3-9
1 个评论
Walter Roberson
2017-3-9
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!