Preventing Licenses from Getting Hung on the License Server

« Go Back

Information

 
QuestionHow do I prevent licenses from getting 'hung' on the license server?
Answer
A hung license is one that does not check back in to the license server after STK terminates. If your STK application is leaving hung licenses on your network license server, this is generally caused by STK terminating in an unexpected manner. To free the license on the server, refer to the article How do I Release a Hung Network License?

To prevent the hung license from occurring in the first place, you need to determine why STK shut down unexpectedly (i.e., crashed). 
 
1) Computer issue
 
First, check the STK/Help system requirements and make sure your computer meets minimum specifications.

Does your computer enter 'sleep' mode while STK is running with licenses checked out from the server? When the computer sleeps, the network card is turned off to save power; this is a default setting. Turning off a network card is not a normal/acceptable way to disconnect STK from a license server, and it may cause the licenses to not check in properly on the server. To prevent this, open the Device Manager. From the Network adapter, right-click and select Properties -> Power Management panel. Clear the 'Allow the computer to turn off this device to save power' check box. There may be other concerns with turning off this option, so check with your local system administrator before making this change.
 
 
User-added image

2) Network Issues
 
If there are network connectivity issues, the connection between STK and the license server may be intermittent and/or lost completely. When this happens, STK will give you a warning in the STK Message Viewer alerting you of this situation and recommending that you save the current scenario because STK will terminate within a specified amount of time. If this occurs regularly, then please contact your local system administrator. The administrator may need to define TCP/IP ports for use by the license manager and daemon and allow those ports through the firewall. For more information on this action, see the article Connect to the Network License Server Through a Firewall.
 
User-added image

3) STK problems
 
The problem may lie within STK, such as a computation using too much memory or an issue that AGI developers need to address. In this case, contact AGI Tech Support and provide them as much information as possible to try to duplicate the circumstances and determine the specific cause.
 
4) User actions
 
   There are actions you should avoid while STK has licenses checked out, to prevent the licenses from becoming hung on the server. Here are some things to avoid doing:
 
         • Do not unplug your network cable
         • Do not disable your network adapter
 
User-added image
You can also implement the use of a timeout value in an options file. See the article What is an Options File (STKD.opt)?. Add this line to the file:
TIMEOUTALL 900
This sets the time after which an inactive license is released from the server; 900 seconds is the minimum. Refer to the article Network (Floating) License Server Supported OSs and Required FLEX Version.
 
TitlePreventing Licenses from Getting Hung on the License Server
URL NamePreventing-licenses-from-getting-hung-on-the-license-server

Related Files