incubator-uniffle icon indicating copy to clipboard operation
incubator-uniffle copied to clipboard

Limit the speed of memory release when drop pending events

Open xianjingfeng opened this issue 3 years ago • 4 comments

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

xianjingfeng avatar Aug 18 '22 14:08 xianjingfeng

A little confused about the effect of pr. Do you give some data on your production environment?

jerqi avatar Aug 19 '22 07:08 jerqi

https://stackoverflow.com/questions/8719071/is-it-possible-to-get-outofmemoryerror-because-garbage-collection-too-slow

jerqi avatar Aug 19 '22 08:08 jerqi

Discuss in #164?

xianjingfeng avatar Aug 19 '22 09:08 xianjingfeng

Discuss in #164?

OK.

jerqi avatar Aug 19 '22 09:08 jerqi