External commands: High memory consumption in work process

[] [] [] [] [] []

Symptom

You call the function SXPG_CALL_SYSTEM or SXPG_COMMAND_EXECUTE frequently within a program (for example, in a loop).
In the work process details in SM 50, you observe that the memory consumption of the work process in which the program runs becomes increasingly larger.

Other terms

SXPG_CALL_SYSTEM, SXPG_COMMAND_EXECUTE

Reason and Prerequisites

Therefore, this problem occurs only if the following two prerequisites are met:
1. You call one of the mentioned functions very frequently (more than a hundred times) within the same program.
2. You call the function without an explicit RFC destination.
This second prerequisite is always fulfilled in SXPG_CALL_SYSTEM.
As a result of the second prerequisite, the functions generate RFC destinations themselves. However, the system deletes these RFC destinations again only when the program ends. If you call the function many times, this leads to an increasingly large memory requirement.

Solution

Implement the correction instructions or import the relevant Support Package.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Comment