Java Agent's connection to AutomationEngine (Server) is terminated with Java errors in Agent log
search cancel

Java Agent's connection to AutomationEngine (Server) is terminated with Java errors in Agent log

book

Article ID: 89943

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Java Agent's connection to AutomationEngine (Server) is terminated with Java errors in Agent log

Environment

Release: AOATAM99000-9.0-Automic-One Automation Tools-Application Manager
Component:

Resolution

Symptoms

Java Agent (SAP, RA, JMX, SQL) connection to AutomationEngine (Server) is terminated with Java errors shown below written in the Agent log:

U2000010 Connection to Server '120.31.51.232:2217' terminated.

java.io.IOException:Connection reset by peer

java.nio.channels.ClosedChannelException:null

U2000196 Next attempt to create a CP connection in '600' seconds.

These errors similar to this appear are written in one of the AutomationEngine's CP logs:


Cause


The most likely cause is the a maximum message size has been exceeded.  In order for Automic to avoid 3rd party applications flooding a CP, the maximum message size that a CP can accept can be set in the INI file of the AE.

Resolution

In this example, the message size is almost 4MB:

U1002210 Message with length '3904695' not allowed

The default message size that a CP can accept is '3145728' (3 Mbytes).  Since the message from the Java_Agent is 3904695 bytes (almost 4MB), the acceptable message size needs to be increase in the AE INI file here:

[TCP/IP] section:

maxMsgSize= 4000000 (Maximum length of messages (in bytes) that a CP (Server communication process) accepts.)

U1002200 Received an invalid message from partner 'Java_Agent' via connection '120.31.51.26:52852'.
U1002210 Message with length '3904695' not allowed.
U0009907 Memory dump 'Invalid Msg from 'Java_Agent' (Address='bfbed010', Length='49152')