SAP Knowledge Base Article - Preview

3123341 - LoggingAPI causes bottleneck during high load of messages in SAP Process Integration


In SAP Process Integration/SAP Process Orchestration system, you started to notice severe performance issues in your system related to the message processing.

Messages are increasing in the Scheduled/To Be Delivered status and the backlog in the DispatchDisp queue is also increasing.

If you capture some thread dumps while the issue is happening, you can see that several threads are blocked waiting to lock a resource. Similar to the stack below:

  • java.lang.Thread.State: BLOCKED (on object monitor)
     - waiting to lock <0x00000006a51d8ff0> (a

If you search for the resource above (0x00000006a51d8ff0), you can see that it is currently locked by a thread which is using the LoggingAPI to write logs into the OS (default traces):

  • "MS Queue Worker [Dispatch]" #3046 prio=5 os_prio=0 cpu=7984480.00 [reset 7984270.00] ms elapsed=12846.70 [reset 12609.73] s allocated=3662732934712 B (3.33 TB) [reset 3662705029776 B (3.33 TB)] defined_classes=31
    io= file i/o: 2237827/265280220635 B, net i/o: 475543309/1885648 B, files opened:3, socks opened:2  [reset file i/o: 2236547/265280220120 B, net i/o: 475538959/1866003 B, files opened:2, socks opened:2 ] 
    user="" isapplicationthread="true" tid=0x00007f0110200800 nid=0xe8e7 / 59623  pthread-id=139639260653312 runnable   [_thread_blocked (_at_safepoint), stack(0x00007f004c672000,0x00007f004c873000)] [0x00007f004c86f000]
       java.lang.Thread.State: RUNNABLE
     at[BIIZLjava/lang/String;)V(Native Method)
     at sun.nio.cs.StreamEncoder.writeBytes()V(
     at sun.nio.cs.StreamEncoder.implFlushBuffer()V(
     at sun.nio.cs.StreamEncoder.implFlush()V(
     at sun.nio.cs.StreamEncoder.flush()V(
     - locked <0x000000065b44bdd0> (a
     - locked <0x000000069ab844b0> (a
     - locked <0x00000006cb1b7ce8> (a java.lang.Object)
     - locked <0x00000006c72c4328> (a
     - locked <0x00000006a5343140> (a
     - locked <0x00000006a51d8ff0> (a
     at;Ljava/security/AccessControlContext;)Ljava/lang/Object;(Native Method)
       Locked ownable synchronizers:
     - None



SAP Process Integration

SAP NetWeaver


SAP NetWeaver 7.5


Logging, LoggingAPI, Tracing, Log, Performance, Scheduled, ToBeDelivered, To Be Delivered, Waiting, DispatchDisp, Dispatch, Messaging, Queue, Thread, WeightedRoundRobinQueueProvider, SAP, PI, Process Integration, PO, Process Orchestration, XI, 7.5, 7.4, 7.3, 7.31, 7.1 , 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 for Me (Login required).

Search for additional results

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