Using Netty Server Builder for gRPC Server & running into Out of Memory error where direct memory size is exceeding the allocated size of 1.2g.
Tried using both pooled byte buffer allocator as well as unpooled byte buffer allocator. Looks like Netty is creating Thread Local Cache and the size of the thread local cache is almost equal to the total size of direct memory. Tried setting the below system property to disable thread local cache but still see that the thread local cache is getting created.
Initially was using Netty version 4.1.74.FINAL but also upgraded Netty server version 4.1.89.Final and seeing the same issue
Any suggestions on how to use Netty Server effectively for creating & managing the gRPC server.
Tried using both pooled byte buffer allocator as well as unpooled byte buffer allocator. Looks like Netty is creating Thread Local Cache and the size of the thread local cache is almost equal to the total size of direct memory. Tried setting the below system property to disable thread local cache but still see that the thread local cache is getting created.