You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shenyu.apache.org by "邪龙(dragon-zhang)" <19...@qq.com.INVALID> on 2022/04/14 15:30:42 UTC
回复:metaData match only once
Sorry, in fact, `org.apache.shenyu.common.concurrent.MemoryLimitCalculator` is used, not `MemoryLimiter`.
------------------ 原始邮件 ------------------
发件人: "邪龙(dragon-zhang)" <1936978077@qq.com>;
发送时间: 2022年4月14日(星期四) 晚上11:05
收件人: "dev"<dev@shenyu.apache.org>;
主题: metaData match only once
Hello community:
According to ISSUE[1], the more metadata, the slower the matching speed.
The solution of this PR[2] is to add a LRU cache to make the same URL match only once.
This LRU cache uses `MemoryLimiter` to solve the memory problem: when the available memory of the JVM is less than a certain value, the cleanup action will be triggered.
If you are free, please see the PR[2] and help this PR[2] to solve the problem better.
Looking forward to your reply.
[1] https://github.com/apache/incubator-shenyu/issues/3177
[2] https://github.com/apache/incubator-shenyu/pull/3245
Re: metaData match only once
Posted by XiaoYu <xi...@apache.org>.
hi,
its good job, i already merged in to master.
thanks for you contribution~
邪龙(dragon-zhang) <19...@qq.com.invalid> 于2022年4月14日周四 23:30写道:
>
> Sorry, in fact, `org.apache.shenyu.common.concurrent.MemoryLimitCalculator` is used, not `MemoryLimiter`.
>
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "邪龙(dragon-zhang)" <1936978077@qq.com>;
> 发送时间: 2022年4月14日(星期四) 晚上11:05
> 收件人: "dev"<dev@shenyu.apache.org>;
>
> 主题: metaData match only once
>
>
>
> Hello community:
>
> According to ISSUE[1], the more metadata, the slower the matching speed.
>
>
>
> The solution of this PR[2] is to add a LRU cache to make the same URL match only once.
>
>
> This LRU cache uses `MemoryLimiter` to solve the memory problem: when the available memory of the JVM is less than a certain value, the cleanup action will be triggered.
>
>
>
> If you are free, please see the PR[2] and help this PR[2] to solve the problem better.
>
> Looking forward to your reply.
>
> [1] https://github.com/apache/incubator-shenyu/issues/3177
> [2] https://github.com/apache/incubator-shenyu/pull/3245