Note You can use timeouts only with concurrent licenses.
If you have a Concurrent license, you can use the FlexNet® licensing timeout option to automatically return idle license keys at your site. With license timeouts, the license manager automatically frees license keys that sit idle for a specified period of time.It, returning the licenses to the pool of available license keys.
For example, when you start MATLAB® and other products, such as toolboxes, you check out license keys for these products. If you go home without exiting your MATLAB session, these licenses remain checked out and are not available to other users. With timeouts enabled, after your licenses sit idle for a specified period, the license manager releases the license keys for all the products you had been using and these keys become available to other users.
To take advantage of timeouts, you must specify the
in a FlexNet options file. This options file is a text file that
contains license manager options statements, such as
To enable timeouts:
Create a FlexNet options file,
if one does not exist, using any text editor. Name the options file
put the file in the
matlabroot represents you installation
$ARCH represents a platform-specific
folder. For example, on a Windows system, you might create the file
to the options file, using the following syntax:
TIMEOUT feature seconds
You cannot specify separate timeout values for individual MathWorks® products,
such as toolboxes.
seconds, specify the amount of idle time
you want to allow. The minimum value is 4 hours (14,400 seconds).
If you specify a timeout value that is smaller, the minimum value
is used. For example, to specify a five-hour time-
out, enter the following in your options file.
TIMEOUT MATLAB 18000
FlexNet licensing supports the
Make sure the
in your License File specifies the location of your options file.
The License File
DAEMON line must include the
For example, your
DAEMON line might look like the
DAEMON MLM "C:\Program Files\MATLAB\R2016a\etc\win64\MLM.exe" \ options="C:\Program Files\MATLAB\R2016a\etc\win64\mlm.opt"
Stop the license manager and restart it. Whenever you change the License File, or change the time-out value in the options file, you must restart the license manager.
When timeout is enabled, if you open a MATLAB session, and then leave it inactive for more than 4 hours, when you return, you will find MATLAB still open on your desktop. However, you will see the following message displayed in the Command Window:
Your MATLAB session has timed out. All license keys have been returned.
The timeout is also recorded in the license manager log file, as follows:
Idle session. Returning keys for <user>@<machine>
To resume a MATLAB session that has timed out, start using MATLAB again. If a license key is available, MATLAB checks it out automatically. Likewise, as you use the toolboxes and other products that you had checked out, MATLAB obtains license keys for these products as well.
If a license key is not available, MATLAB periodically attempts to check out a license, issuing warning messages. After 10 warnings, if a license key is still not available, MATLAB saves the workspace and exits.