netty5/buffer/src
Scott Mitchell 108fbe5282
ByteBufUtil to not pool direct memory by default
Motivation:
ByteBufUtil by default will cache DirectByteBuffer objects, and the
associated direct memory (up to 64k). In combination with the Recycler which may
cache up to 32k elements per thread may lead to a large amount of direct
memory being retained per EventLoop thread. As traffic spikes come this
may be perceived as a memory leak because the memory in the Recycler
will never be reclaimed.

Modifications:
- By default we shouldn't cache DirectByteBuffer objects.

Result:
Less direct memory consumption due to caching DirectByteBuffer objects.
2018-02-12 10:49:17 -08:00
..
main/java/io/netty/buffer ByteBufUtil to not pool direct memory by default 2018-02-12 10:49:17 -08:00
test/java/io/netty/buffer Cleanup buffer tests. 2018-02-02 07:33:46 +01:00