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

Reply via email to