-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 when processing h2 protocol requests #2924
Comments
Is there any more info that I could use to try to understand this? Code that consistently triggers it? |
this bytes bug will cause oom.tokio-rs/bytes#559 |
@seanmonstar i keep sending request in h2 with 6k body with the same client. Memory keep growing.i use jemalloc to dump jeprof file,and find most memories are alloc by slab. buffer's slab len in Recv keeps growing,not falling |
@maxbear1988 are you still facing the issue? I am currently facing a memory leak in my Axum / hyper app so I am investigating in all directions. |
when hyper process h2 protocol requests with large body,memory keeps increasing.I dump two jeprof.out.x.x.m2.heap,compare them,find _$LT$h2..codec..framed_read..FramedRead$LT$T$GT$$u20$as$u20$futures_core..stream..Stream$GT$::poll_next::hd05c05a51fa46d93 malloc most memory,and not free.
0.0 0.0% 100.0% 1361.2 89.8% 0x000056341f367654 bytes::bytes_mut::BytesMut::reserve_inner::hfde02843ef3655ca + 132 in section .text
0.0 0.0% 100.0% 1436.7 94.7% 0x000056341e389a87 _$LT$h2..codec..framed_read..FramedRead$LT$T$GT$$u20$as$u20$futures_core..stream..Stream$GT$::poll_next::hd05c05a51fa46d93 + 1687 in section
The text was updated successfully, but these errors were encountered: