diff --git a/templates/jvm.options.j2 b/templates/jvm.options.j2 index 5b9010e..8d34be6 100644 --- a/templates/jvm.options.j2 +++ b/templates/jvm.options.j2 @@ -18,9 +18,17 @@ # Xms represents the initial size of total heap space # Xmx represents the maximum size of total heap space - +{% if es_heap_size is defined %} -Xms{{ es_heap_size }} +{% else %} +-Xms2g +{% endif %} + +{% if es_heap_size is defined %} -Xmx{{ es_heap_size }} +{% else %} +-Xms2g +{% endif %} ################################################################ ## Expert settings