MATLAB and SimuLink take a very long time to load or be ready

35 views (last 30 days)
I have MATLAB R2019b installed locally in my $HOME directory on CentOS 7.6, using a corporate license (with the network.lic file stored locally). MATLAB starts up quickly (~5s), but takes a long time to be ready before I can do anything. For example, after clicking on the Simulink button from the main toolbar, it takes at least five minutes before Simulink actually loads. Once it is loaded, if I go to the Simulink Onramp program to pick up where I left off, it opens the main window quickly enough, but then takes another five minutes or so to load the Tips and Objectives panes. This happens every time I start a new task.
Additionally, I am connected to my home WiFi, then to my company's network via a Pulse Secure VPN. I also have a corporate proxy that my internet traffic goes through.
I have already tried several different methods to speed this up, including setting the MLM_LICENSE_FILE environment variable, pointing at the local network.lic file; starting MATLAB with the matlab -c <path/to/license/file.lic> command; trying various proxy settings within MATLAB > Preferences > Web (I have tried with no proxy to see if it uses my system proxy settings, two different proxy servers, with/without authentication); making sure Toolbox path cache is enabled, no source control is used; and even resetting my preferences by removing the .matlab directory. Nothing has worked so far, and I'm out of ideas.
Anyone know if this is fixable and what I might do to speed things up?
Thanks in advance!
  5 Comments
Bryan Avis
Bryan Avis on 6 Jul 2020
All three appear to be reachable via ping, so it appears that MATLAB is successfully retrieving the license on startup. However, after running Wireshark and monitoring my network adapter's connections, with only MATLAB running, I see a lot of ESP protocol requests from my computer to what appears to be a company VPN address. When I ping this address, it times out every time. I'm not as well-versed in network protocols, so I'm not sure if this is normal operation or not.
Walter Roberson
Walter Roberson on 6 Jul 2020
It is not uncommon for firewalls running ESP to not be reachable by ping. If you are getting prompt response to the outgoing ESP packets, then the firewall (VPN) is probably running as it should be. If you have outgoing ESP packets but no corresponding ESP packets then you might have a VPN issue.

Sign in to comment.

Answers (0)

Categories

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

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!