<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->

- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have searched the [release notes](https://github.com/apache/dubbo/releases) of this repository and believe that this is not a duplicate.

## Describe the feature

see ISSUE: https://github.com/apache/shenyu/issues/3763

Is there anyone willing to copy this PR:https://github.com/apache/shenyu/pull/3764 to Dubbo ?


private static final long serialVersionUID = 8032578371739960142L;
    public static int THE_256_MB = 256 * 1024 * 1024;
    private int maxFreeMemory;
    public MemorySafeLinkedBlockingQueue() {
        this(THE_256_MB);
    }
    public MemorySafeLinkedBlockingQueue(final int maxFreeMemory) {
        super(Integer.MAX_VALUE);
        this.maxFreeMemory = maxFreeMemory;
    }
    public MemorySafeLinkedBlockingQueue(final Collection<? extends E> c,
                                         final int maxFreeMemory) {
        super(c);
        this.maxFreeMemory = maxFreeMemory;
    }
    /**
     * set the max free memory.
     *
     * @param maxFreeMemory the max free memory
     */
    public void setMaxFreeMemory(final int maxFreeMemory) {
        this.maxFreeMemory = maxFreeMemory;
    }
    /**
     * get the max free memory.