How to Get the PI XML Message Size

The size of a PI message depends on 2 elements, the header and the payload. Large messages can consume heavy memory usage and reduce the overall system performance. In case of performance issue, you can use below steps to determine the message size of XML which will be useful for troubleshooting purposes.

Step 1: Use transaction code SXMB_MONI and double click on Monitor for Processed XML Messages.

Step 2: Look for the XML message and for this example purpose, we are selecting the Processed Successfully status and set the time / date period accordingly. You can use the Advanced Selection Criteria or User-Defined Selection Criteria for specific selection. Press Execute (F8).

Step 3: From above step, double click on the XML message and you will be route to below screen. Under Inbound Message, double click on Runtime. From your right panel, look for the bottom panel and scroll down a bit till you see the <SAP:MessageSizePayload> line.

Step 4: The XML message is based on the MessageSizeTotal. All the message sizes below are counted in bytes.

Item Description
MessageSizePayloadSize of payload
MessageSizeTotalSize of payload + header
PayloadSizeRequestPayload size before the mapping
PayloadSizeRequestMapPayload size after the mapping
PayloadSizeResponseSize of before response message that is sent back to PI.
PayloadSizeResponseMapSize of after the response mapping for synchronous messages.

Reference

1271812 – XI runtime: Total message size in runtime object

You May Also Like

Leave a Reply?