[Bug] TotalPendingBytes size overflow Exception
Pre-check
- [x] I am sure that all the content I provide is in English.
Search before asking
- [x] I had searched in the issues and found no similar issues.
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
dubbo 3.2.18 openjdk21
Steps to reproduce this issue
Issue Description: When building a consumer-provider application using JDK 21 deployed on an intranet server:
- The consumer-side runs on an 8-core CPU and 8GB RAM machine with JVM -Xmx parameter set to 4GB.
- RPC communication uses the Triple protocol with a message size of ~900KB (approximately 1MB).
- Under 100 concurrent RPC calls (issue reproduces at just 15 concurrency), all RPC requests fail immediately with the error: TotalPendingBytes size overflow for stream
After testing, in JDK 21, whether business threads use virtual threads or platform threads to initiate Dubbo RPC requests, the error conclusion remains unchanged – both cases result in the same error.
What you expected to happen
"I want to resolve this error because under the exact same configuration (JDK 8 + Dubbo 3.0.12 + Triple protocol), my tests run without errors. However, the error occurs with Dubbo 3.2.18 and JDK 21."
what i want to know is why it happend in jdk21 + dubbo 3.2.18 , but not happend in JDK 8 + Dubbo 3.0.12 ;
i have read some issue ralated this , but i didnt find a offical method** to resolve it and **didnt find a really reason for it ...
Anything else
No response
Are you willing to submit a pull request to fix on your own?
- [ ] Yes I am willing to submit a pull request on my own!
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
could you provide test codes to reproduce the issue that you encountered?
could you provide test codes to reproduce the issue that you encountered?
just a very simple consumer and provider with triple protocol in dubbo 3.2.18 and jdk21 can reproduce , nothing else ( no any performance param is used ,all is default ) so you can create the test quickly by springboot alibaba starter
try the latest version. the issue that you said might be duplicated with https://github.com/apache/dubbo/issues/14635
try the latest version. the issue that you said might be duplicated with #14635
so....i can`t upgrate the latest version for many reasons , can i fix it by changing some config in 3.2.18 ?
can i fix it by changing some config in 3.2.18 ?
no