Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Is your feature request related to a problem? Please describe:
Recently, from @shafreeck investigation, we have located that sometimes gRPC may cache a huge memory which may cause OOM. We may write an article to discuss it in detailed later.
Here, I think, the same as RocksDB, why not using an independent arena for gRPC, so we can trace the gRPC memory statistics easily and know the above problem better.
Describe the feature you'd like:
The gRPC has already provided an allocation hook, see https://github.com/grpc/grpc/blob/master/include/grpc/support/alloc.h#L30, what we should do is very easy, just follow the usage of RocksDB https://github.com/facebook/rocksdb/blob/8843129ecef255a70f186e095063b4e79b2b0c73/memory/jemalloc_nodump_allocator.cc, to build an allocator.
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy: