You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by "邪龙(dragon-zhang)" <19...@qq.com.INVALID> on 2022/05/09 13:47:04 UTC
support MemorySafeLinkedBlockingQueue
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
Re: support MemorySafeLinkedBlockingQueue
Posted by Jun Liu <li...@apache.org>.
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) <19...@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