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

High CPU overhead while using spring-cloud-gateway with agent #12796

Open
123liuziming opened this issue Nov 26, 2024 · 0 comments
Open

High CPU overhead while using spring-cloud-gateway with agent #12796

123liuziming opened this issue Nov 26, 2024 · 0 comments

Comments

@123liuziming
Copy link
Contributor

I am evaluating the performance impact of otel java agent on spring-cloud-gateway application, and I found the performance overhead introduced by agent in this scenario to be very high.
image
image
CPU usage doubled in my performance test scenario(I do the performance test with&without otel java agent, and send requests to a spring-cloud-gateway application with 1000 QPS).

I 've analyzed the flame graph
flamegraph.zip

The main reason for this performance overhead is because agent use resetOnEachOperator to propagate context on all the operators. But in this scenario, most of the context propagations are useless for users because SCG do not produce any span in those operators. Do we have some ways to avoid those context propagation?

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

No branches or pull requests

1 participant