Process Automation orchestrator slow performance when agent service is started.

Document ID : KB000005984
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Process Automation Orchestrator sluggish.  Seeing high CPU usage on the orchestrator system where an agent is also installed.  If the agent service is stopped the CPU usage goes back to normal and Orchestrator performance goes back to normal.   

Environment:
Windows 2012One Orchestrator
Cause:

Agent logs are filled with: 

2017-02-22 14:18:13,205 ERROR [com.optinuity.c2o.transport.PAMWebSocketClient] [SReconnectTimer] Unable to establish a web-socket connection to URI :: wss://<hostname>:443/ws?uuid=228fb3ab-70da-468f-af15-3c5795bbcee5&IsClusterPropsRequired=false. Trying again... 
java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused: no further information 
at org.eclipse.jetty.websocket.WebSocketClient$WebSocketFuture.get(WebSocketClient.java:569) 
at org.eclipse.jetty.websocket.WebSocketClient$WebSocketFuture.get(WebSocketClient.java:372) 
at com.optinuity.c2o.transport.PAMWebSocketClient.connect(PAMWebSocketClient.java:259) 

Issue with agent communicating with the orchestrator.

 

Resolution:

There are two types of communication agents use:

  • Simplified Communication
    Simplified communication uses web sockets and HTTP to produce a one way, persistent connection from the agent to the Orchestrator. CA Process Automation uses a standard port (80 or 443) that provides a fast connection between the components.
  • Deprecated Communication
    Deprecated communication, which uses multiple ports, is not as firewall- or NAT router-friendly as simplified communication. The Orchestrator-initiated connections that are used in deprecated communication are not as efficient as the persistent connections used in simplified communication.

 

I changed the agent to use simplified communication:

1. Login to Proc Auto. 
2. Click the Configuration tab and expand Agents on the Configuration Browser palette. 
3. Select the agent for which to switch communication and click Lock. 
4. Select the Properties tab for the selected agent. 
5. Find the Deprecated Communication check box. 
6. Uncheck it.
7. Select the agent and click Unlock. 

Additional Information:

This Knowledge Article focuses on performance issue caused by an agent.  If you do not have an agent installed and seeing high CPU usage or performance issues please see the below.

 

TEC595672 "How to adjust Java Memory settings for Process Automation Orchestrator"

Performance tuning for Process Automation