Releasing a remote agent license

Ranorex Spy, Recorder, and Studio.
Posts: 7
Joined: Wed Apr 25, 2018 4:00 pm

Releasing a remote agent license

Post by mvlismas » Thu Apr 26, 2018 2:40 pm

I am running test cases from my local machine and want to perform tests on multiple VM's. When I have a RDP session open I can launch the remote agent to lock one of the remote runtime licenses. When the tests are done and I close the remote agent to free up a license the license manager shows the license as LEASED, then after 1 minute it goes to LOCKED, then after 6 minutes it shows as FREE.

Why does it take almost 7 minutes to free up a license after the remote agent is no longer running? Please allow me to modify this somehow.

See the license manager configuration below specifying a MINIMUM of 5 minutes until the license is released.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
    <!-- Maximum size of the datastore (log etc.) in MB-->
    <add key="DataStoreMaxSize" value="64" />
    <add key="MultiCastAddress" value="FF02::1" />
    <add key="IPv6Enabled" value="True" />
    <add key="BroadcastTimeout" value="00:00:01" />
    <add key="AuthServiceUrl" value="" />

    <!--The time before an inactive client will release its license. There is a minimum of 5 minutes.
        Setting the value below to less than 5 minutes will have no effect.-->
    <add key="TimeoutBeforeInactiveClientsReleaseTheirLicense" value="300000" />
    <!--5 minutes...-->
    <!-- Sort keys to influence the license lease order. The property with the lowest comparison sort key
         is the one that matters most when choosing a free license.
         I.e. if a runtime license is requested, then in the following example runtime licenses with
         a high epoch are rather chosen than Premium licenses with a low epoch. -->
    <add key="FeaturesComparisonSortKey" value="10" />
    <add key="ProductComparisonSortKey" value="20" />
    <add key="EpochComparisonSortKey" value="30" />
    <enforceFIPSPolicy enabled="false" />
    <generatePublisherEvidence enabled="false" />
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />

User avatar
Support Team
Site Admin
Site Admin
Posts: 12172
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Releasing a remote agent license

Post by Support Team » Fri Apr 27, 2018 11:39 am

Hi mvlismas,

The specified timeout ("TimeoutBeforeInactiveClientsReleaseTheirLicense") in the file you posted, only gets effective if no physical user is using the client machine, then the license is released until there is some user input again. The time a license stays in the "Locked" state cannot be changed. A license will only go to the Locked state if it is not correctly released by a process, e.g. if you kill the process.
Therefore, may I ask you how you stop the Ranorex Agent? Are you killing the process in the task manager or are you simply hitting the "Exit"-button in the agent?

Best regards,
Ranorex Support Team