[grpc-io] Re: limiting grpc memory usage

2022-07-31 Thread naser neno
hlo في الثلاثاء، 14 يونيو 2022 في تمام الساعة 4:41:21 ص UTC+3، كتب ho...@google.com رسالة نصها: > Which gRPC library are you using? And which language? C++, Java, Python, > etc > On Monday, June 6, 2022 at 11:42:26 AM UTC-7 amandee...@gmail.com wrote: > >> So, we identified that it might be bec

[grpc-io] Re: limiting grpc memory usage

2022-06-13 Thread 'AJ Heller' via grpc.io
Which gRPC library are you using? And which language? C++, Java, Python, etc On Monday, June 6, 2022 at 11:42:26 AM UTC-7 amandee...@gmail.com wrote: > So, we identified that it might be because of > CodedInputStream::ReadStringFallback in protocol buffers. > We do not reserve the buffer upfront

[grpc-io] Re: limiting grpc memory usage

2022-06-06 Thread amandee...@gmail.com
So, we identified that it might be because of CodedInputStream::ReadStringFallback in protocol buffers. We do not reserve the buffer upfront and use string's append repeatedly for some reason. This leads to a string capacity of 8MB for a 4MB string. Any pointers would be helpful. On Thursday, Ma