Why does MATLAB take a long time to start?
441 views (last 30 days)
Ian Jessen on 6 Jan 2011
A slow startup is often caused by issues with the license search path. You probably need to adjust one of the license environment variables (LM_LICENSE_FILE or MLM_LICENSE_FILE) used by MATLAB, or else bypass them all together.
There are also some instances in which your MATLAB preferences or Anti-Virus program may negatively impact startup times.
For detailed info on applying these workarounds, visit the following Technical Support solution:
More Answers (1)
Dan Cogan on 2 May 2018
Edited: Walter Roberson on 2 May 2018
Double check with -c that the issue has to do with licencing (e.g. <path-to-matlab>/matlab.exe -c <path-to-license-file>). If it opens quickly then Matlab is having some difficulty with LM_LICENSE_FILE.
Some have recommended removing LM_LICENSE_FILE (and using MLM_LICENSE_FILE) but I couldn't because of other software. However, one of those software tools had their own unique license variable as well, so I moved the pertinent license info to that one. Now Matlab loads quickly.
I suspect that because the other tool licences in LM_LICENSE_FILE were accessed over a network, and there were several network servers, this throws Matlab off somehow. Seems like a good solution is to minimize what goes into the shared LM_LICENSE_FILE variable.