sentinel-apache-dubbo-adapter Entry leak cause full GC #1416
Labels
area/integrations
Issues or PRs related to integrations with open-source components
good first issue
Good for newcomers
kind/bug
Category issues or prs related to bug.
Milestone
sentinel-apache-dubbo-adapter-1.7 cause full gc.
When dubbo request grow, full gc regularly.
Reason:
https://github.com/alibaba/Sentinel/blob/release-1.7/sentinel-adapter/sentinel-apache-dubbo-adapter/src/main/java/com/alibaba/csp/sentinel/adapter/dubbo/SentinelDubboConsumerFilter.java#L68
https://github.com/alibaba/Sentinel/blob/release-1.7/sentinel-adapter/sentinel-apache-dubbo-adapter/src/main/java/com/alibaba/csp/sentinel/adapter/dubbo/SentinelDubboProviderFilter.java#L70
Provider and Consumer use the same key to store CtEntry.
A = client
B = server dubbo provider
C = server dubbo provider
For example: A --> call B (call C)
When onResponse
https://github.com/alibaba/Sentinel/blob/release-1.7/sentinel-adapter/sentinel-apache-dubbo-adapter/src/main/java/com/alibaba/csp/sentinel/adapter/dubbo/BaseSentinelDubboFilter.java#L65
C remove DubboUtils.DUBBO_INTERFACE_ENTRY_KEY first, then B can't find the key, so CtEntry object create by SentinelDubboProviderFilter escape. so heap will grow.
The text was updated successfully, but these errors were encountered: