OpenSearch/distribution/tools/launchers/src
Tim Brooks af908efa41
Disable netty direct buffer pooling by default (#44837)
Elasticsearch does not grant Netty reflection access to get Unsafe. The
only mechanism that currently exists to free direct buffers in a timely
manner is to use Unsafe. This leads to the occasional scenario, under
heavy network load, that direct byte buffers can slowly build up without
being freed.

This commit disables Netty direct buffer pooling and moves to a strategy
of using a single thread-local direct buffer for interfacing with sockets.
This will reduce the memory usage from networking. Elasticsearch
currently derives very little value from direct buffer usage (TLS,
compression, Lucene, Elasticsearch handling, etc all use heap bytes). So
this seems like the correct trade-off until that changes.
2019-08-08 15:10:31 -06:00
..
main/java/org/elasticsearch/tools/launchers Disable netty direct buffer pooling by default (#44837) 2019-08-08 15:10:31 -06:00
test/java/org/elasticsearch/tools/launchers Mute testPooledMemoryChoiceOnNotSmallHeap 2019-07-23 13:16:22 +03:00