incubator-uniffle
incubator-uniffle copied to clipboard
Limit the speed of memory release when drop pending events
What changes were proposed in this pull request?
Limit the speed of memory release when drop pending events
Why are the changes needed?
OOM will happen if a large number of events need to be dropped, because usedMemory release immediately, but the speed of GC is not fast enough. #164
Does this PR introduce any user-facing change?
No
How was this patch tested?
Already added
A little confused about the effect of pr. Do you give some data on your production environment?
https://stackoverflow.com/questions/8719071/is-it-possible-to-get-outofmemoryerror-because-garbage-collection-too-slow
Discuss in #164?
Discuss in #164?
OK.