SAP Knowledge Base Article - Preview

2352139 - How to avoid OutOfMemoryError caused by Java Archive Job

Symptom

You observe OutOfMemoryError during the execution of Java Archive Job in PI/PO system. The Leak Suspects result shows the following details:

The thread com.sap.engine.core.thread.impl5.SingleThread @ 0x32d740aa0 System [52] keeps local variables with total size <number of bytes> (#%) bytes.
The memory is accumulated in one instance of "char[]" loaded by "<system class loader>".
The thread is processing PI message with ID: xxxxx
at java.lang.OutOfMemoryError.<init>()V (OutOfMemoryError.java:25)
at java.lang.AbstractStringBuilder.expandCapacity(I)V (AbstractStringBuilder.java:145)
at java.lang.AbstractStringBuilder.append(Ljava/lang/String;)Ljava/lang/AbstractStringBuilder; (AbstractStringBuilder.java:486)
at java.lang.StringBuffer.append(Ljava/lang/String;)Ljava/lang/StringBuffer; (StringBuffer.java:258)
at com.sap.engine.messaging.impl.core.job.archiving.ArchivingMessage.toXML()Ljava/lang/String; (ArchivingMessage.java:592)
at com.sap.engine.messaging.impl.core.job.executor.ArchiveExecutor.archiveMessage(Lcom/sap/archtech/archconn/ArchSession;Lcom/sap/engine/
messaging/impl/core/job/archiving/ArchivingMessage;)V (ArchiveExecutor.java:1049)
at com.sap.engine.messaging.impl.core.job.executor.ArchiveExecutor.archiveAsyncMessages(Lcom/sap/archtech/archconn/ArchSession;Ljava/util/List;)I (ArchiveExecutor.java:565)
at com.sap.engine.messaging.impl.core.job.executor.ArchiveExecutor.executeArchivingJob()J (ArchiveExecutor.java:336)
at com.sap.engine.messaging.impl.core.job.executor.ArchiveExecutor.execute()V (ArchiveExecutor.java:187)
at com.sap.engine.messaging.impl.core.job.JobExecutor.run()V (JobExecutor.java:89)


Read more...

Environment

  • SAP NetWeaver 7.3
  • SAP enhancement package 1 for SAP NetWeaver 7.3
  • SAP NetWeaver 7.4
  • SAP NetWeaver 7.5

Product

SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP enhancement package 1 for SAP NetWeaver 7.3

Keywords

Java Archive Job, XML DAS, OutOfMemoryError, OOM, logging, staging, Process Integration 7.30, PI 7.30, Process Integration 7.31, PI 7.31, Process Orchestration 7.4, PI 7.4, PO 7.4, Process Orchestration 7.5, PI 7.5, PO 7.5, AEX , KBA , BC-XI-CON-MSG , Messaging System , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.