RA agent - Java heap space issue when sending External Reports
search cancel

RA agent - Java heap space issue when sending External Reports


Article ID: 194105


Updated On:


CA Automic Workload Automation - Automation Engine


When using the RA Agent to send External Reports using a CALL object that has the option Attach Reports with source External Files or All ticked, the agent crashes with a Java Heap space error:

RA Job Report:

20200525/121422.608 -           job finished C C 1294058677 147248393 XXURD_UPDTSO_UNT_RMT true

java.lang.OutOfMemoryError: Java heap space
               at java.util.Arrays.copyOf(Arrays.java:3332)
               at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
               at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:649)
               at java.lang.StringBuilder.append(StringBuilder.java:202)
               at com.uc4.util.QuotedPrintable.encode(QuotedPrintable.java:40)
               at com.uc4.ex.mail.MailClient.sendMail(MailClient.java:193)
               at com.uc4.ex.mail.MailRoutine$1.run(MailRoutine.java:110)
               at com.uc4.ex.ThreadPool$RunnableDecorator.run(ThreadPool.java:53)
               at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
               at java.util.concurrent.FutureTask.run(FutureTask.java:266)
               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at java.lang.Thread.run(Thread.java:748)

Service Manager log:

20200525/121445.079 - U00022012 Process 'UC4 <RA_Agent>' (ID '123065') ended.
20200525/121445.079 - U00022022 Process 'UC4 <RA_Agent>' ended, exit code='77'.



Release : v12.2 / v12.3

Component : RA Agent


If the External Reports are very large the Java Heap space get exhausted because SMTP_MAX_ATTACHMENT_SIZE is not implemented on RA Agents



- Increase the Java Heap size

- Don't send the External Reports