Question
· Aug 8

How do I release unused licenses in Cache 2018.1.7

I have a personal copy of Cache which I use to help me with certain things. The instance resides on my Windows desktop. The apps I use a web enabled. It would be great if I could access my apps via web browser from my laptop without having to keep a copy of Cache on my laptop. It would make it difficult to keep the databases synced. So, if I restart my Cache instance, then I can use get to my apps by entering the url: http://ipadd:57772/csp/user/myapp.cls. but later, after having closed the browser on my laptop, if I try to open a browser session on my desktop I get license limit exceeded. So I restart my cache instance and then I can access the app on my desktop, but not on my laptop. I am not asking that I be able to have a browser session open on both computers at the same time. But I should be able to have an open browser session on either my laptop or desktop without having to restart my instance each time. Isn't there a way to release the license once it is not being used?

Thank you for your time.

Product version: Caché 2018.1
$ZV: Cache for Windows (x86-64) 2018.1.7 Fri Mar 8, 2022 22:24:36 EDT
Discussion (1)2
Log in or sign up to continue

The issue you are facing with license limits appears to be due to the fact that each browser connection reserves a license for a period of time. Here's how you can diagnose and address the problem:

  1. Understanding License Usage and Release:

    • When a browser session accesses a web-enabled Cache application, it consumes a license. Even after closing the browser, the license is not released immediately because the system's grace period retains license slots for a duration after connection closure to prevent unauthorized license sharing [1][2].
  2. Viewing Current License Use:

    • You can access the Management Portal's "System Operation > License Usage" page to check details such as which users or connections are consuming the licenses, and whether they are being released properly [1][3][2]. Alternatively, use the terminal command Do $system.License.ShowSummary() for a summary of license usage [1].
  3. Forcing License Release:

    • Sometimes, the system doesn't release licenses immediately due to lingering connections or processes. If licenses are stuck, you can attempt to manually end sessions or wait for the grace period to expire. You can also analyze specific lingering sessions with $SYSTEM.License.DumpLocalInUse() to identify which connections are consuming licenses [1].
  4. Optimizing Connections and Users:

    • Ensure that only one session per user is open at any time from a specified IP to minimize the use of multiple licenses [2][1]. Closing unused browsers or tabs or configuring the application to reuse sessions can also help reduce consumption.
  5. Checking and Configuring Licensing:

    • Verify that your Cache license meets your use case. If not, you might need to discuss more advanced license configurations with InterSystems to avoid unnecessary reoccurring restarts [1][3].

These steps should help you better manage license use and mitigate the issue. Let me know if you need further clarification.

Sources: