Difference between revisions of "Slow startup"

From mn/geo/geoit
Jump to: navigation, search
Line 5: Line 5:
 
A quick and dirty way is that you change the environment variable to a physical location on my disk where the license file is (i.e. C:\ProgramFiles\MATLAB\R2014b\licenses\license_PCGEOXX_885740_R2014b.lic), then Matlab works wonderful and starts up super fast. However, every time you log off, the environment variable changes back to the default which is to look on the network for a license key. The cause is that the link refers to an older 32-bit Version of Matlab.
 
A quick and dirty way is that you change the environment variable to a physical location on my disk where the license file is (i.e. C:\ProgramFiles\MATLAB\R2014b\licenses\license_PCGEOXX_885740_R2014b.lic), then Matlab works wonderful and starts up super fast. However, every time you log off, the environment variable changes back to the default which is to look on the network for a license key. The cause is that the link refers to an older 32-bit Version of Matlab.
  
A better approach is to try to start matlab with command line:
+
A better approach is to try to start matlab with '''command line''':
 
<pre>"C:\Program Files\MATLAB\R2014b\bin\matlab.exe" -c "C:\Program Files\MATLAB\R2014b\licenses\license_PCGEOXX_885740_R2014b.lic"
 
<pre>"C:\Program Files\MATLAB\R2014b\bin\matlab.exe" -c "C:\Program Files\MATLAB\R2014b\licenses\license_PCGEOXX_885740_R2014b.lic"
 
</pre>
 
</pre>
 +
-c lets you specify location of the License file. No environment variables are used. If it Works better, you may wish to take a copy of Your matlab shortcut and do edits in that. This method is better, because you don't have to alter any environment variables.
  
-c lets you specify location of the License file. No environment variables are used. If it Works better, you may wish to take a copy of Your matlab shortcut and do edits in that. This method is better, because you don't have to alter any environment variables.
+
An even better optimization is by directly calling this from the shortcut. By right-clicking on the Matlab '''shortcut''' on your desktop, then '''properties''', and within the tab '''shortcut''' you find the field '''Target'''. It the command line above is typed here it will automatically execute.
  
[[Category:Matlab]]</pre>
+
[[Category:Matlab]]

Revision as of 12:57, 20 February 2015

When Matlab takes a very long time to start up on my machine, as well as opening for parallel processing. It is very clear where the problem is, and is explained very clearly in the link.

Two approach might solve the issue

A quick and dirty way is that you change the environment variable to a physical location on my disk where the license file is (i.e. C:\ProgramFiles\MATLAB\R2014b\licenses\license_PCGEOXX_885740_R2014b.lic), then Matlab works wonderful and starts up super fast. However, every time you log off, the environment variable changes back to the default which is to look on the network for a license key. The cause is that the link refers to an older 32-bit Version of Matlab.

A better approach is to try to start matlab with command line:

"C:\Program Files\MATLAB\R2014b\bin\matlab.exe" -c "C:\Program Files\MATLAB\R2014b\licenses\license_PCGEOXX_885740_R2014b.lic"

-c lets you specify location of the License file. No environment variables are used. If it Works better, you may wish to take a copy of Your matlab shortcut and do edits in that. This method is better, because you don't have to alter any environment variables.

An even better optimization is by directly calling this from the shortcut. By right-clicking on the Matlab shortcut on your desktop, then properties, and within the tab shortcut you find the field Target. It the command line above is typed here it will automatically execute.