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

Memory leak in span_processing_xxx metrics #21

Open
Yyukan opened this issue Apr 15, 2019 · 3 comments
Open

Memory leak in span_processing_xxx metrics #21

Yyukan opened this issue Apr 15, 2019 · 3 comments

Comments

@Yyukan
Copy link

Yyukan commented Apr 15, 2019

  • http4s version 0.20.x
  • kamon http4s version 1.0.11

We noticed a memory leak in span_processing_time_seconds_xxx metrics in the field "parent"

Screenshot 2019-03-29 at 10 48 29

Screenshot 2019-03-26 at 15 44 51

@ivantopo
Copy link
Contributor

hey @Yyukan, if you keep digging inside that parent member, could you please show us what is being referenced from there?

@Yyukan
Copy link
Author

Yyukan commented Apr 15, 2019

hey @ivantopo it is hard to say, but here is screenshot
Screenshot 2019-04-15 at 11 40 28

Looks like every request Kamon.currentContext() is updated with the new span child and never being released (SpanBuilder#joinParentContext(..))

stsatlantis pushed a commit to stsatlantis/kamon-http4s that referenced this issue Apr 10, 2020
@ntngel1
Copy link

ntngel1 commented Nov 1, 2023

I'm joining here guys, faced this problem too, several hours of runtime in production and then service dies because of OOM.

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

3 participants