Good job. I noticed that PR on Github and we can discuss more about it before the next patch release.
Jun > On May 9, 2022, at 9:47 PM, 邪龙(dragon-zhang) <1936978...@qq.com.INVALID> > wrote: > > Hello community: > > > Since PR[1] get merged, I found a better way to limit the memory used by > `BlockingQueue`. > > > This `MemorySafeLinkedBlockingQueue` uses `MemoryLimitCalculator` to solve > the memory problem: when the available memory of the JVM is less than a > certain value, the queue no longer `offer`. > > > > > I submit a PR[2], you can see ISSUE[3] to get more details. > > > If you are free, please see the PR[2] and help this PR[2] to solve the > problem better. > > Looking forward to your reply. > dragon-zhang > > > [1] https://github.com/apache/dubbo/pull/9789 > [2] https://github.com/apache/dubbo/pull/10021 > > [3] https://github.com/apache/dubbo/issues/10020