[undertow-dev] Questions about Undertow's ByteBufferPool

Stuart Douglas sdouglas at redhat.com
Tue Jun 13 20:21:02 EDT 2017


It should be used anytime you require a large direct buffer (generally
for IO operations). Depending on your app you may not need to use them
directly at all, although Undertow will always use them internally.

The buffers are fixed size which is determined dynamically (unless
explicitly specified), generally they will be 16kb as this seems to
give optimal IO performance.

Stuart

On Mon, Jun 12, 2017 at 11:06 AM, Violeta Georgieva <milesg78 at gmail.com> wrote:
> Hi,
>
> I have few questions about Undertow's ByteBufferPool.
> Are there any best practices how it should be used?
> Also are the ByteBuffers always fixed in size?
>
> Thanks,
> Violeta
>
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev


More information about the undertow-dev mailing list