SAP Knowledge Base Article - Preview

3256896 - Memory issue for Mail Sender Adapter related to java.lang.String.toLowerCase

Symptom

There is a new error in the recent PO versions, with the following points to note:

- You are using mail channel.

- You observe a general slowness in the system, affecting various areas like monitoring, channels, adapters, etc..

- System is getting OOM dumps. Following is an example from a .hprof file:

""

The thread com.sap.engine.core.thread.execution.CentralExecutor$SingleThread @ 0x64998a0b8 HTTP Worker [@1472174398] keeps local variables with total size <> (x%) bytes.

The memory is accumulated in one instance of com.sap.engine.core.thread.execution.CentralExecutor$SingleThread, loaded by com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 0x6475a3a58, which occupies <> (x%) bytes.

The stacktrace of this Thread is available. See stacktrace. See stacktrace with involved local variables.

Keywords

  • com.sap.engine.core.thread.execution.CentralExecutor$SingleThread
  • com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 0x6475a3a58
  • java.util.Arrays.copyOfRange([CII)[C
  • Arrays.java:3664
  • java.lang.String.<init>([CII)V
  • String.java:207
  • java.lang.String.toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
  • String.java:2693
  • java.lang.String.toLowerCase()Ljava/lang/String;
  • String.java:2716
  • com.sap.aii.af.sdk.xi.net.MIMEInputSource.decodeParts(Lcom/sap/aii/af/sdk/xi/lang/Binary;Lcom/sap/aii/af/sdk/xi/mo/Message;)V
  • MIMEInputSource.java:832

""

- Thread dumps are showing memory issues as well, in bold the important entries:

HTTP Worker [@1472174398] at java.lang.OutOfMemoryError.<init>()V (OutOfMemoryError.java:48) at java.util.Arrays.copyOfRange([CII)[C (Arrays.java:3664)
at java.lang.String.<init>([CII)V (String.java:207)
at java.lang.String.toLowerCase(Ljava/util/Locale;)Ljava/lang/String; (String.java:2693)
at java.lang.String.toLowerCase()Ljava/lang/String; (String.java:2716)
at com.sap.aii.af.sdk.xi.net.MIMEInputSource.decodeParts(Lcom/sap/aii/af/sdk/xi/lang/Binary;Lcom/sap/aii/af/sdk/xi/mo/Message;)V (MIMEInputSource.java:832)
at com.sap.aii.af.sdk.xi.net.MIMEInputSource.readBody(Lcom/sap/aii/af/sdk/xi/net/MIMEInputSource$MIMEReader;)V (MIMEInputSource.java:581)
at com.sap.aii.af.sdk.xi.net.MIMEInputSource.parse(Ljava/util/Map;Ljava/io/InputStream;)Lcom/sap/aii/af/sdk/xi/mo/MessageContext; (MIMEInputSource.java:220)
at com.sap.aii.adapter.xi.ms.XIMessage.createMessageContext(Ljava/util/Map;Ljava/io/InputStream;)Lcom/sap/aii/af/sdk/xi/mo/MessageContext; (XIMessage.java:1196)
at com.sap.aii.adapter.xi.ms.XIMessage.<init>(Lcom/sap/engine/interfaces/messaging/spi/MessageProperties;Lcom/sap/engine/interfaces/messaging/spi/transport/TransportBody;)V (XIMessage.java:482)...

- PO system is on version 7.5 at least with SP22 or above


Read more...

Environment

MESSAGING SYSTEM SERVICE 7.50 SP 22 and above

XI ADAPTER FRAMEWORK 7.50 SP 22 and above

Keywords

Process Orchestration 7.5, PI 7.5, PO 7.5, XI, AEX, MIME, java.lang.OutOfMemoryError, com.sap.aii.af.sdk.xi.net.MIMEInputSource.decodeParts
, KBA , BC-XI-CON-MAI , Mail Adapter , Problem

About this page

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

Search for additional results

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