From ff203ae4f0ac5daea9524fbf98d9a2ad06434e43 Mon Sep 17 00:00:00 2001 From: Andrey Borisko Date: Thu, 14 Nov 2019 13:25:52 -0500 Subject: [PATCH 1/2] (#628) Added io.netty.allocator.numDirectArenas=0 flag to overcome RAM issues on ES >= 7.4.0 --- templates/jvm.options.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/jvm.options.j2 b/templates/jvm.options.j2 index 98327824..6c09254c 100644 --- a/templates/jvm.options.j2 +++ b/templates/jvm.options.j2 @@ -67,6 +67,9 @@ -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 +{% if es_version | version_compare('7.4.0', '>=') %} +-Dio.netty.allocator.numDirectArenas=0 +{% endif %} # log4j 2 -Dlog4j.shutdownHookEnabled=false From 8e00565bf6b085e3bc7a702c0f885bb516c08dc5 Mon Sep 17 00:00:00 2001 From: andrx Date: Thu, 21 Nov 2019 10:52:45 -0500 Subject: [PATCH 2/2] Update templates/jvm.options.j2 updates for latest ansible versions Co-Authored-By: Julien Mailleret --- templates/jvm.options.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/jvm.options.j2 b/templates/jvm.options.j2 index 6c09254c..bde18afa 100644 --- a/templates/jvm.options.j2 +++ b/templates/jvm.options.j2 @@ -67,7 +67,7 @@ -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -{% if es_version | version_compare('7.4.0', '>=') %} +{% if es_version is version('7.4.0', '>=') %} -Dio.netty.allocator.numDirectArenas=0 {% endif %}