Slow startup in VPN

11 次查看(过去 30 天)
Fabrizio Motto
Fabrizio Motto 2020-3-16
Hello.
When I'm not in my office and I work in a VPN Matlab needs a lot of time to start (from my office it much faster). It seems, that it searches for a server, that cant be found. It can't be the license because I have my own licence, I'm not working with floating licences.
What can it be?
Is ther some setting, that ich can try to change?
Thank you.
  1 个评论
Fabrizio Motto
Fabrizio Motto 2020-3-16
The problem should be in matlabpath(pathdef); in matlabrc.
I don't undertand why it lasts so long in the VPN. All the path ther are local in my computer.
pathdef at the end calls getenv('MATLABPATH') and it is empty. Can it be the problem?

请先登录,再进行评论。

回答(1 个)

Shiva Kalyan Diwakaruni
Hi,
In some instances, customers have reported that the anti-virus application which was working in the background, was slowing down MATLAB. For these customers, disabling the “active scan’ option for at least the MATLAB directories improved performance substantially.
In some rare cases the preference settings in MATLAB may negatively affect startup performance. The following steps ensure the toolbox cache settings are set back to the default:
  1. In the MATLAB toolstrip, click on “Home” and then on the “Preferences” button.
  2. Inside the “Preferences” window, select “MATLAB -> General” on the left-hand side.
  3. On the right-hand side, verify that “Enable toolbox path cache” is enabled.
Another possible preference that may negatively affect startup performance is the source-control integration. Please attempt to disable this setting if you do not use any form of source-control integration.
  1. In the MATLAB toolstrip, click on “Home” and then on the “Preferences” button.
  2. Inside the “Preferences” window, select “MATLAB -> General -> Source Control”. on the left-hand side.
  3. Select “None” on the right-hand side and then apply the changes.
If none of the above solutions resolve the issue the “timing” flag can be used as a diagnostic tool that will help determine which process is taking a long time to initialize. To do this, you can run MATLAB from command prompt or terminal by navigating to the bin directory like so:
cd $MATLAB\R20XXx\bin
Where $MATLAB is the root MATLAB directory
Next execute the following command:
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.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by