-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Server side: OutOfDirectMemoryError #11350
Comments
Can you check if the issue occurs with the latest grpc java version (1.65.0)? |
Upgrading to the latest version will still have this problem |
You are getting the OOM on server-side? How many concurrent RPCs is the server handling? It looks like the servers response is pretty small, so the memory is mostly being consumed by the requests. |
Yes, there is a problem on the server, the server handles the concurrency of 100 RPCs. |
Working on this issue and analysis in progress. |
I tried the multiple scenarios/ways to reproduce the issue reported in the github with different memory threshold but unable to reproduce it. Waiting for further updates on this. |
grpc version: 1.52.1
java version: 1.8
Now my client uses 100 threads, each thread sends 1M data, the server directly returns the response, I set the out-of-heap memory size limit to 512M, the client as long as the execution of the server will appear the following error, and the server program will not reduce the memory.
The client code is as follows:
The server code is as follows:
The text was updated successfully, but these errors were encountered: