[go-nuts] Re: Memory Leak in bytes.Buffer String() method

2020-08-30 Thread Jake Montgomery
Sorry if this is a bit obvious. I did not dive into your code. But I did notice that replacePositionalPlaceholders returns buf.String(). If you are certain that this is where the memory 'leak' is originating, then the most likely scenario is that the returned string is never being collected. Is

Re: [go-nuts] Re: Memory Leak in bytes.Buffer String() method

2020-08-30 Thread Ian Lance Taylor
On Sun, Aug 30, 2020 at 8:28 AM Sarath Prabath Redlapalli Jaya wrote: > > The memory usage of containers are ever increasing and has grown from 100 MB > to ~ 1 GB in couple of hours. Not able to understand where the gap is, even > though the the builder is being reset. Would keeping a sync.Pool

[go-nuts] Re: Memory Leak in bytes.Buffer String() method

2020-08-30 Thread Sarath Prabath Redlapalli Jaya
The memory usage of containers are ever increasing and has grown from 100 MB to ~ 1 GB in couple of hours. Not able to understand where the gap is, even though the the builder is being reset. Would keeping a sync.Pool of builders help here? Regards On Sunday, August 30, 2020 at 8:55:15 PM