cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What are possible causes of -140: Bad message command ?

What are possible causes of -140: Bad message command ?

QuestionWhat are possible causes of -140: Bad message command ?

Answer:

Based on the details provided in FNP_11.16.3 product documentation (Programming reference guide) and release note for FNP-11.16.3:

If an ISV upgrades the lmgrd and vendor daemon alone, the error that would be observed by an older version (version < 11.16.3) client (when ls_max_connections limit is breached) is: “LM_BADCOMMAND” Error code: “-140” - “A bad command was found in a message”.

On later versions of clients, Once connection limit has reached, the vendor daemon disconnects further connections with error code as
-237(LM_VD_MAX_CLIENTS_REACHED).

This is related to the new vendor variable, ls_max_connections, has been added in FNP-11.16.3, to configure the maximum number of
connections to the vendor daemon at any point in time. It can also be used to prevent the license server from running out of file descriptors.

To configure the maximum number of connections to the vendor daemon at any point in time.
• The default value is 0, indicating that the restriction is disabled.
• The minimum value allowed is 1 and the maximum is 1 000 000.

NOTE:

Kindly be advised that , In 11.16.3.0, the "ls_max_connections" vendor variable was added to lsvendor.c to set the maximum connection on vendor daemon. In FNP-11.16.4, the "ls_max_connections" vendor variable is no longer available in lsvendor.c.

Instead, an option file keyword "MAX_CONNECTIONS" has been introduced to set the maximum connection limit on vendor daemon. This allows the end customers to access the appropriate value for their environments and set the limit appropriately.

So, On non-Windows (POSIX-compliant) platforms, the vendor daemon will consider the minimum value out of the following:
• 'getrlimit()' call will be made once at vendor daemon startup to calculate the system limit for the number of open file descriptors
• the value set for 'MAX_CONNECTIONS'.

>> Connection limit for the vendor daemon. The range is (31 - 10,00,000). The default value is 10,00,000 (if not specified).

Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Apr 25, 2020 11:26 PM
Updated by:
Contributors