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 keep going up and never go down #2508

Open
wisamidris7 opened this issue Aug 14, 2024 · 1 comment
Open

Memory keep going up and never go down #2508

wisamidris7 opened this issue Aug 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@wisamidris7
Copy link

I used a the normal grpc service template and I did a threading and 100,000,000 word request
Cause my requirements for grpc is a peer to peer data transformation so the data is gonna be exceeding 15mb

When I created a empty grpc application when I made a test application that makes a lot of requets
I found out that it keeps taking memory without garbage collecting when it got into ~300mb it has been stuck there until another request come and high it up and never go down

And this is video when I did the steps that made this issue

Untitled.Projectm.mp4

And the application here is a zip file for it

GrpcService3.zip

And you can try it with your self and try to fixing it cause grpc must be mutant for many requests and long body

@wisamidris7 wisamidris7 added the bug Something isn't working label Aug 14, 2024
@kalduzov
Copy link

kalduzov commented Sep 5, 2024

This is not a bug, this is a feature of the system.io.pipelines that underlie the processing of requests on kestrel. The internal pipe buffer (sequence) for reading data from the socket at high RPS for the connection will always only increase, but not decrease. And the larger the request size, the more actively this buffer will increase, so that all data in this connection is successfully processed.

Either in the runtime or aspnet project there is an issue in which the creation of a mechanism for truncating unused blocks in this place is discussed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants