Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving Logging in the Message Helper Component to Track Synapse Message Context Properties with OM-Type Elements #3972

Open
sajith-madhusanka opened this issue Feb 5, 2025 · 0 comments

Comments

@sajith-madhusanka
Copy link

Current Limitation

We have recently identified that when a Property mediator is configured to store an OM-type element in the Synapse message context before an Iterator/ForEach mediator—which performs message context cloning—it can have a performance impact, as it increases both memory and CPU consumption. This is because the OM object is built during each message context cloning attempt, requiring more memory when the OM object is large and has a deep XML structure. We can address this issue by storing the relevant property in the Axis2 message context instead of the Synapse message context. However, to do this, we need to identify which property is causing the issue, and currently, it is a bit difficult to determine that.

Suggested Improvement

Enhance the logging mechanism of the relevant component to track the Property mediator responsible for setting the OM-type element in the Synapse message context. Introducing debug-level logs would be sufficient for this purpose.

Version

4.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant