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

Performance Improvement: EaseAgent has a relatively large impact on cpu and latency #272

Open
Oseenix opened this issue May 6, 2022 · 0 comments

Comments

@Oseenix
Copy link
Contributor

Oseenix commented May 6, 2022

Is your feature request related to a problem? Please describe.
EaseAgent has a relatively large impact on cpu and latency

CPU usage is related to Span number in a transaction: from about 3.6% of 1 span to 12.2% of 9 spans, which is too hight.
Throughput has dropped from about 1800 to 1500 nearly.

This benchmark report can be found in EaseAgent/doc/benchmark2.md.

Describe the solution you'd like

CPU profile: vets-700.html.txt, this file can be downloaded and the suffix can be changed to an html type file.

After review the profile file, maybe we could improve by:
Screenshot 2022-05-06 at 10 22 01 AM

  • don't call calculate sizeInBytes() before encode, which requiring a new async module;

Screenshot 2022-05-06 at 10 26 53 AM

  • in brave lib, before report, the inner real Span(MutableSpan) instance will be converted to ReportSpan(zipkin2.Span/com.megaease...tracing.ReportSpan), try do not do this conversion every time.

  • try use the lock-free disruptor for async reporter.

  • try find other hight performance json encoder lib.

Welcome to review the benchmark report and contribute your idea of improvement.

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