Re: ByteBuffer pooling

2020-09-28 Thread Rémy Maucherat
On Mon, Sep 28, 2020 at 5:31 PM Martin Grigorov wrote: > On Mon, Sep 28, 2020 at 6:11 PM Rémy Maucherat wrote: > > > On Mon, Sep 28, 2020 at 4:34 PM Martin Grigorov > > wrote: > > > > > Hi, > > > > > > I've profiled the memory allocation during load testing HTTP2: > > > https://pasteboard.co/Jt

Re: ByteBuffer pooling

2020-09-28 Thread Martin Grigorov
On Mon, Sep 28, 2020 at 6:11 PM Rémy Maucherat wrote: > On Mon, Sep 28, 2020 at 4:34 PM Martin Grigorov > wrote: > > > Hi, > > > > I've profiled the memory allocation during load testing HTTP2: > > https://pasteboard.co/Jtblqfl.png > > > > As you can see there are a lot of ByteBuffer.allocate(in

Re: ByteBuffer pooling

2020-09-28 Thread Rémy Maucherat
On Mon, Sep 28, 2020 at 4:34 PM Martin Grigorov wrote: > Hi, > > I've profiled the memory allocation during load testing HTTP2: > https://pasteboard.co/Jtblqfl.png > > As you can see there are a lot of ByteBuffer.allocate(int) calls. > org.apache.catalina.connector.Response#Response(int) > org.ap

ByteBuffer pooling

2020-09-28 Thread Martin Grigorov
Hi, I've profiled the memory allocation during load testing HTTP2: https://pasteboard.co/Jtblqfl.png As you can see there are a lot of ByteBuffer.allocate(int) calls. org.apache.catalina.connector.Response#Response(int) org.apache.catalina.connector.Request#inputBuffer org.apache.coyote.http2.Htt