After upgrading Automic from 12.x to 21.0, when a particular Agent is Stopped and then Started again, it takes a long time for AWI to respond (2 or 3 minutes).
During this, AWI will not responding to any query.
Could you please help what could be the reason for this?
Release : 21.x
Component: Automation Engine
Issue caused by the fact that JCP was unable to connect to the Service Manager port of the Agent due to a Firewall.
The issue is due to the fact that the JCP fails to perform the Agent Service Manager lookup as it timeouts after 8 minutes (most likely caused by a firewall):
20230420/120634.894 - 38 U00029416 Agent Challenge authorization successful : 'AGENT_NAME'
20230420/120836.567 - 38 U00045382 Started Service Manager Lookup for process id 'YYY' on 'XXX.XXX.XXX.XXX' with port range '8871-8879'.
20230420/121638.648 - 38 U00003336 Connection to Service Manager 'XXX.XXX.XXX.XXX' cannot be established
20230420/121638.648 - 38 U00045014 Exception 'java.io.IOException: "java.util.concurrent.TimeoutException"' at 'com.automic.smgr.net.ServiceClientConnection.call():204'.
20230420/121638.648 - 38 U00045015 The previous error was caused by 'java.util.concurrent.TimeoutException: "null"' at 'java.util.concurrent.FutureTask.get()'.
20230420/121638.648 - 38 U00003434 Server routine 'FindServiceHandler/SVC_FND' required '8' minutes and '2' seconds for processing.
In v21, the variable SMGR_LOOKUP is set by default to YES and that's why this problem is only detected after upgrading to version 21.
Open the Firewall to allow the connection from the JCP to the Service Manager Port being using by the Agents declared on the system, else simply set in the UC_SYSTEM_SETTINGS in client 0 the variable SMGR_LOOKUP to NO and then try again, it should work now.
The default value for the variable SMGR_LOOKUP has been changed to NO in Automation Engine 21.0.9/ 24.0.0 and superior versions.