dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

[Bug] TotalPendingBytes size overflow Exception

Open mz0113 opened this issue 2 weeks ago • 2 comments

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:

  1. The ‌consumer-side‌ runs on an ‌8-core CPU and 8GB RAM‌ machine with JVM -Xmx parameter set to ‌4GB‌.
  2. RPC communication uses the ‌Triple protocol‌ with a ‌message size of ~900KB‌ (approximately 1MB).
  3. 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

mz0113 avatar Dec 11 '25 11:12 mz0113

could you provide test codes to reproduce the issue that you encountered?

zrlw avatar Dec 15 '25 06:12 zrlw

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

mz0113 avatar Dec 15 '25 07:12 mz0113

try the latest version. the issue that you said might be duplicated with https://github.com/apache/dubbo/issues/14635

zrlw avatar Dec 16 '25 02:12 zrlw

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 ?

mz0113 avatar Dec 16 '25 08:12 mz0113

can i fix it by changing some config in 3.2.18 ?

no

zrlw avatar Dec 17 '25 02:12 zrlw