diff --git a/templates/jvm.options.j2 b/templates/jvm.options.j2 index 98327824..bde18afa 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 is version('7.4.0', '>=') %} +-Dio.netty.allocator.numDirectArenas=0 +{% endif %} # log4j 2 -Dlog4j.shutdownHookEnabled=false